GRASS logo

NAME

r.in.wms2.py

DESCRIPTION

r.in.wms2 handles all of downloading and importing raster data from an OGC WMS, OGC WMTS and NASA OnEarth Tiled WMS web mapping servers. It needs only be told the desired data to collect (bounds and resolution) via a region, the server to get the data from, and the layer or layers to get. It downloads the data in tiles, reprojects it, imports it, and patches it back together.

NOTES

To understand the data you are getting it is necessary to look at the capabilities of the WMS server. This should be available via a capabilities request. This is an example capabilities request to NASA's OnEarth server.

NASA OnEarth Tiled WMS

Into parameter layers insert name of TiledGroup from Tile Service file.

Time variable is possible to specify in urlparams parameter.
e. g: urlparams='time=2012-1-1'

EXAMPLES

General Get Capabilities Request

r.in.wms2 -c url=http://wms.cuzk.cz/wms.asp

Download raster data from WMS server (GetMap request)

World extend data:

r.in.wms2 url=http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms layers=bluemarble,landsat_1_01 styles=default,default output=landsat srs=4326 format=png 
* Server supports only WMS 1.1.1
r.in.wms2 url=http://132.156.97.59/cgi-bin/worldmin_en-ca_ows layers=GSC:WORLD_PrecambrianDomains output=pokus srs=4326 format=jpeg 
* Server supports only WMS 1.1.1
r.in.wms2 url=http://gpp3-wxs.ign.fr/yourAPIkey/geoportail/wmts layers=ORTHOIMAGERY.ORTHOPHOTOS output=orthophoto srs=3857 format=jpeg driver=WMTS_GRASS style=normal password=* username=*
* Username, password and API key can be get from IGN API website
r.in.wms2 output=global_mosaic url=http://onearth.jpl.nasa.gov/wms.cgi layers='Global Mosaic, visual' driver=OnEarth_GRASS 

Data in extend of Czech Republic:

r.in.wms2 output=kn url=http://wms.cuzk.cz/wms.asp layers=prehledka_kraju-linie srs=4326 format=png
r.in.wms2 url=http://geoportal.cuzk.cz/WMTS_ORTOFOTO/WMTService.aspx layers=orto output=ortofoto srs=3857 format=jpeg driver=WMTS_GRASS style=default

REQUIRED PROGRAMS

r.in.wms2 requires the following programs to work:

SEE ALSO

r.in.gdal, r.patch, r.colors, r.composite, v.in.wfs

AUTHORS

Stepan Turek, Czech Technical University in Prague, Czech Republic (bachelor's final project 2012, mentor: Martin Landa)

Last changed: $Date$


Main index - raster index - Full index

© 2003-2016 GRASS Development Team