... | ... | @@ -69,7 +69,7 @@ Another key component of our project is to access, download and integrate a Web |
|
|
|
|
|
### 2.1: Connecting and Downloading WMS
|
|
|
|
|
|
First, we created a non-executable class that contains a method **getMap()** that:
|
|
|
First, we created a [non-executable class](url) that contains a method **getMap()** that:
|
|
|
> 1. creates a WebMapServer object
|
|
|
> 2. tests the URL
|
|
|
> 3. retrieves the WMSCapabilities and information about the service
|
... | ... | @@ -98,13 +98,24 @@ Step 1 completed. |
|
|
|
|
|
```
|
|
|
|
|
|
The corresponding .java file for this non-excutable class can be found [here](url).
|
|
|
|
|
|
The result is this image "boston.png":
|
|
|
|
|
|

|
|
|
|
|
|
### 2.2: Converting WMS Image into .KML
|
|
|
|
|
|
Here, we created a [non-executable class](url) that contains a method **wmsTOkml()** that:
|
|
|
|
|
|
> - finds the local boston.png image
|
|
|
> - writes a kml file (containing the image) to a local wms_kml_structure.kml
|
|
|
|
|
|
When this method is called from the main class, the user will be kept updated and will see the following on the console:
|
|
|
```
|
|
|
Turning local .png of Boston into kml format at: C:\Users\Christina\Documents\EoT\wms_kml_structure.kml...
|
|
|
Image found..
|
|
|
Image converted to kml and stored at: C:\Users\Christina\Documents\EoT\wms_kml_structure.kml
|
|
|
Step 2 completed.
|
|
|
```
|
|
|
|
|
|
### Further Information
|
|
|
|
... | ... | |