|
|
# Creating the wms request
|
|
|
* started by requesting capabilites -> to see them and to see if the service is running
|
|
|
* references used:
|
|
|
* https://docs.geoserver.org/2.21.x/en/user/services/wms/reference.html
|
|
|
* https://docs.geoserver.org/main/en/user/services/wms/basics.html -> Crs/EPGS code
|
|
|
```
|
|
|
https://maps.heigit.org/osm-wms/service/WMSServer?SERVICE=WMS&Version=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&layers=osm_auto:all&BBOX=42.32,-71.13,42.42,-71.03&styles=&WIDTH=780&HEIGHT=780&FORMAT=image/png&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE
|
|
|
|
|
|
```
|
|
|
?SERVICE=WMS -> choose wms
|
|
|
|
|
|
&Version=1.3.0 -> set version
|
|
|
|
|
|
&REQUEST=GetMap -> request map image
|
|
|
|
|
|
&CRS=EPSG:4326 -> set projections(Wgs84)
|
|
|
|
|
|
&layers=osm_auto:all -> select layer
|
|
|
|
|
|
&BBOX=42.32,-71.13,42.42,-71.03 -> bbox coordinates (lat/long)
|
|
|
|
|
|
&styles=&WIDTH=780&HEIGHT=780 -> set size of map, if different dimension projection skewed
|
|
|
|
|
|
&FORMAT=image/png -> set image format
|
|
|
|
|
|
&BGCOLOR=0xFEFFFF -> set background color
|
|
|
|
|
|
&TRANSPARENT=TRUE -> set transparent bg
|
|
|
|
|
|
* minx,miny,maxx,maxy -> -71.13,42.32,-71.03,42.42
|
|
|
|
|
|
* axis order is set as X=longitude (easting) and Y=latitude (northing), negative values are long
|
|
|
|
|
|
|
|
|
# Integration of the WMS Image into Google Earth:
|
|
|
https://docs.geotools.org/latest/userguide/extension/wms/wms.html |
|
|
\ No newline at end of file |