... | @@ -69,7 +69,7 @@ Another key component of our project is to access, download and integrate a Web |
... | @@ -69,7 +69,7 @@ Another key component of our project is to access, download and integrate a Web |
|
|
|
|
|
### 2.1: Connecting and Downloading WMS
|
|
### 2.1: Connecting and Downloading WMS
|
|
|
|
|
|
First, we created a [non-executable class](url) that contains a method **getMap()** that:
|
|
First, we created a [non-executable class "wms_GetMap](https://git.sbg.ac.at/s1080384/EoT/-/blob/main/Previous%20Versions%20(working%20files)/Christina%2004_07_2021/wms_GetMap.java) that contains a method **getMap()** that:
|
|
> 1. creates a WebMapServer object
|
|
> 1. creates a WebMapServer object
|
|
> 2. tests the URL
|
|
> 2. tests the URL
|
|
> 3. retrieves the WMSCapabilities and information about the service
|
|
> 3. retrieves the WMSCapabilities and information about the service
|
... | @@ -104,7 +104,7 @@ The result is this image "boston.png": |
... | @@ -104,7 +104,7 @@ The result is this image "boston.png": |
|
|
|
|
|
### 2.2: Converting WMS Image into .KML
|
|
### 2.2: Converting WMS Image into .KML
|
|
|
|
|
|
Here, we created a [non-executable class](url) that contains a method **wmsTOkml()** that:
|
|
Here, we created a [non-executable class "wms_ImageToKML](https://git.sbg.ac.at/s1080384/EoT/-/blob/main/Previous%20Versions%20(working%20files)/Christina%2004_07_2021/wms_ImageToKML.java) that contains a method **wmsTOkml()** that:
|
|
|
|
|
|
> - finds the local boston.png image
|
|
> - finds the local boston.png image
|
|
> - writes a kml file (containing the image) to a local wms_kml_structure.kml
|
|
> - writes a kml file (containing the image) to a local wms_kml_structure.kml
|
... | @@ -117,6 +117,25 @@ Image converted to kml and stored at: C:\Users\Christina\Documents\EoT\wms_kml_s |
... | @@ -117,6 +117,25 @@ Image converted to kml and stored at: C:\Users\Christina\Documents\EoT\wms_kml_s |
|
Step 2 completed.
|
|
Step 2 completed.
|
|
```
|
|
```
|
|
|
|
|
|
|
|
## Step 3: Downloading and Converting Twitter.csv File
|
|
|
|
|
|
|
|
### 3.1: Downloading
|
|
|
|
|
|
|
|
Although this step was not included in the assignment instructions, we decided it would be nice for the user to not worry about having to download the .csv file themselves. Therefore we created a [non-executable class "tweets_download"](https://git.sbg.ac.at/s1080384/EoT/-/blob/main/Previous%20Versions%20(working%20files)/Christina%2004_07_2021/tweets_download.java) that contains the methods `saveFileFromUrlWithCommonsIO()` and `**downloadCSV()**` that:
|
|
|
|
|
|
|
|
> - access and download the .csv file from a web-URL
|
|
|
|
|
|
|
|
The user is informed of this process when the method is called from the main class:
|
|
|
|
|
|
|
|
```
|
|
|
|
Downloading online tweets.csv and storing locally ...
|
|
|
|
CSV file downloaded and stored at :C:\Users\Christina\Documents\EoT\tweets.csv
|
|
|
|
Step 3 completed.
|
|
|
|
```
|
|
|
|
### 3.2: Converting .csv into .kml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Further Information
|
|
### Further Information
|
|
|
|
|
|
For further information on this project, don't hesitate to contact the authors:
|
|
For further information on this project, don't hesitate to contact the authors:
|
... | | ... | |