... | ... | @@ -64,16 +64,16 @@ https://docs.geotools.org/latest/userguide/extension/wms/wms.html |
|
|
|
|
|
|
|
|
|
|
|
# Creating a ground overlay to display the image in google earth
|
|
|
# Creating a ground overlay to display the image in google earth:
|
|
|
```
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
|
|
|
|
|
|
|
|
|
<GroundOverlay>
|
|
|
<name>Boston Map</name>
|
|
|
<description>Overlay shows a maptile of the area of interest</description>
|
|
|
<color>4dffffff</color>
|
|
|
<Icon>
|
|
|
<href>*filepath*</href>
|
|
|
<href>C:\User\Downloads\testimg.png</href>
|
|
|
</Icon>
|
|
|
<gx:LatLonQuad>
|
|
|
<coordinates>-71.13,42.32 -71.03,42.32 -71.03,42.42 -71.13,42.42</coordinates> <!-- four lon,lat tuples -->
|
... | ... | @@ -83,6 +83,10 @@ https://docs.geotools.org/latest/userguide/extension/wms/wms.html |
|
|
</kml>
|
|
|
|
|
|
```
|
|
|
To create the kml structure that displayed the WMS-Image as a ground overlay in Google Earth, we used the <color> tag to set the colour of the map and thereby the transparency, as the alpha-value of the hexadecimal code, corresponds to the opacity of the item.
|
|
|
|
|
|
Below you can see how the WMs-image is shown as a ground overlay with 30% opacity.
|
|
|

|
|
|
|
|
|
#References used:
|
|
|
|
... | ... | |