r.in.wms.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <h2>DESCRIPTION</h2>
  2. <em>r.in.wms</em> handles all of downloading and importing raster data
  3. from an <a href="http://www.opengeospatial.org/standards/wms">OGC
  4. WMS</a>, <a href="http://www.opengeospatial.org/standards/wmts">OGC
  5. WMTS</a> and <a href="http://onearth.jpl.nasa.gov/tiled.html">NASA
  6. OnEarth Tiled WMS</a> web mapping servers. It needs only be told the
  7. desired data to collect (bounds and resolution) via a region, the
  8. server to get the data from, and the layer or layers to get. It
  9. downloads the data in tiles, reprojects it, imports it, and patches it
  10. back together.
  11. <h2>NOTES</h2>
  12. To understand the data you are getting it is necessary to look at the
  13. capabilities of the WMS server. This should be available via a
  14. capabilities request, an
  15. <a href="http://wms.jpl.nasa.gov/wms.cgi?request=GetCapabilities">example
  16. capabilities request to NASA's OnEarth server</a>.
  17. <p>
  18. When using GDAL WMS driver (<b>driver=WMS_GDAL</b>), the GDAL library
  19. needs to be built with WMS support,
  20. see <a href="http://gdal.org/frmt_wms.html">GDAL WMS</a> manual page
  21. for details.
  22. <h3>NASA OnEarth Tiled WMS</h3>
  23. Into parameter <b>layers</b> insert name of <i>TiledGroup</i> from
  24. Tile Service file. Time variable is possible to specify
  25. in <b>urlparams</b> parameter,
  26. e.g: <tt>urlparams='time=2012-1-1'</tt>.
  27. <h2>EXAMPLES</h2>
  28. <h3>General Get Capabilities Request</h3>
  29. <div class="code"><pre>
  30. r.in.wms -c url=http://wms.cuzk.cz/wms.asp
  31. </pre></div>
  32. <h3>Download raster data from WMS server (GetMap request)</h3>
  33. <h4>Open Street Map</h4>
  34. Note: European coverage:
  35. <div class="code"><pre>
  36. r.in.wms url=http://watzmann-geog.urz.uni-heidelberg.de/cached/osm layers=osm_auto:all output=osm format=png
  37. </pre></div>
  38. <div class="code"><pre>
  39. r.in.wms url=http://irs.gis-lab.info layers=osm output=osm format=png
  40. </pre></div>
  41. More OSM WMS servers can be found online, e.g. on the OSM wiki in a
  42. <a href="http://wiki.openstreetmap.org/wiki/WMS#Public_WMS_Servers">OSM WMS Servers list</a>
  43. and on the <a href="http://wiki.openstreetmap.org/wiki/OSM-WMS-EUROPE">OSM-WMS-EUROPE</a> page.
  44. <h4>World data</h4>
  45. <div class="code"><pre>
  46. r.in.wms url=http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms layers=bluemarble,landsat_1_01 styles=default,default output=landsat srs=4326 format=png
  47. </pre></div>
  48. Note: server supports only WMS 1.1.1
  49. <div class="code"><pre>
  50. r.in.wms url=http://apps1.gdr.nrcan.gc.ca/cgi-bin/worldmin_en-ca_ows layers=GSC:WORLD_PrecambrianDomains output=pokus srs=4326 format=jpeg
  51. </pre></div>
  52. Note: server supports only WMS 1.1.1
  53. <h4>OGC WMTS Example</h4>
  54. <div class="code"><pre>
  55. r.in.wms 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=*
  56. </pre></div>
  57. Note: username, password and API key can be get from <a href="http://api.ign.fr/">IGN API</a> website
  58. <h4>NASA OnEarth Tiled WMS Example</h4>
  59. <div class="code"><pre>
  60. r.in.wms output=global_mosaic url=http://onearth.jpl.nasa.gov/wms.cgi layers='Global Mosaic, visual' driver=OnEarth_GRASS
  61. </pre></div>
  62. <h4>Data covering the Czech Republic</h4>
  63. <div class="code"><pre>
  64. r.in.wms output=kn url=http://wms.cuzk.cz/wms.asp layers=prehledka_kraju-linie srs=4326 format=png
  65. </pre></div>
  66. <div class="code"><pre>
  67. r.in.wms url=http://geoportal.cuzk.cz/WMTS_ORTOFOTO/WMTService.aspx layers=orto output=ortofoto srs=3857 format=jpeg driver=WMTS_GRASS style=default
  68. </pre></div>
  69. Note: data are provided by <a href="http://cuzk.cz/Dokument.aspx?PRARESKOD=998&MENUID=10384&AKCE=DOC:10-ENGLISH">Czech office for surveying, mapping and cadastre</a>.
  70. <h2>REQUIREMENTS</h2>
  71. <em>r.in.wms</em>
  72. requires <a href="http://www.gdal.org/gdalwarp.html">gdalwarp</a>
  73. utility from GDAL/OGR library.
  74. <h2>REFERENCES</h2>
  75. <ul>
  76. <li><a href="http://www.opengeospatial.org/standards/wms">OGC WMS</a></li>
  77. <li><a href="http://www.opengeospatial.org/standards/wmts">OGC WMTS</a></li>
  78. </ul>
  79. <h2>SEE ALSO</h2>
  80. <em>
  81. <a href="r.in.gdal.html">r.in.gdal</a>,
  82. <a href="r.patch.html">r.patch</a>,
  83. <a href="r.colors.html">r.colors</a>,
  84. <a href="r.composite.html">r.composite</a>,
  85. <a href="v.in.wfs.html">v.in.wfs</a>
  86. </em>
  87. <p>
  88. See
  89. also <a href="http://grasswiki.osgeo.org/wiki/WxGUI/Video_tutorials#Add_web_service_layer">WMS
  90. support in wxGUI</a>.
  91. <h2>AUTHOR</h2>
  92. Stepan Turek, Czech Technical University in Prague, Czech Republic
  93. (bachelor's final project 2012, mentor: Martin Landa)
  94. <p>
  95. <i>Last changed: $Date$</i>