v.in.wfs.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <h2>DESCRIPTION</h2>
  2. <em>v.in.wfs</em> imports OGC WFS maps (Web Feature Service) from
  3. external servers.
  4. <h2>EXAMPLES</h2>
  5. <h3>WFS import without credentials</h3>
  6. Import of Copernicus Sentinel-2 satellite scene footprints:
  7. <p>
  8. <div class="code"><pre>
  9. # run in Latitude-Longitude location (EPGS code 4326):
  10. # download "sentinel:mgrs" layer:
  11. v.in.wfs url="https://geoserver.mundialis.de/geoserver/sentinel/wfs?" name="sentinel:mgrs" output=sentinel2_mgrs
  12. </pre></div>
  13. <h3>WFS import with API key</h3>
  14. Download 25 ship wrecks from LINZ data service:
  15. <br>
  16. (first create yourself a free API key at
  17. <a href="http://data.linz.govt.nz/p/web-services/">http://data.linz.govt.nz/p/web-services/</a>)
  18. <p>
  19. <div class="code"><pre>
  20. # run in LatLong location:
  21. URL='http://wfs.data.linz.govt.nz/&lt;PUT YOUR API KEY HERE&gt;/wfs?'
  22. # download list of available layers to wms_capabilities.xml
  23. v.in.wfs -l url="$URL"
  24. </pre></div>
  25. From that file we learn that the shipwreck layer is called "<tt>v:x633</tt>"
  26. and that EPSG code 4326 (LatLong WGS84) is a supported SRS for this data layer.
  27. <div class="code"><pre>
  28. v.in.wfs url="$URL" output=linz_hydro_25_wrecks name="v:x633" srs="EPSG:4326" max=25
  29. </pre></div>
  30. <h2>REQUIREMENTS</h2>
  31. The OGR library on the system needs to be compiled with Xerces C++ XML
  32. Parser support (for GML).
  33. <h2>SEE ALSO</h2>
  34. <em>
  35. <a href="g.region.html">g.region</a>,
  36. <a href="r.in.wms.html">r.in.wms</a>,
  37. <a href="v.import.html">v.import</a>,
  38. <a href="v.in.ogr.html">v.in.ogr</a>
  39. </em>
  40. <h2>AUTHORS</h2>
  41. Markus Neteler, Hamish Bowman
  42. <!--
  43. <p>
  44. <i>Last changed: $Date$</i>
  45. -->