v.in.wfs.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. Import of GRASS user map:
  6. <p><div class="code"><pre>
  7. # run in LatLong location:
  8. v.in.wfs url="http://mapserver.gdf-hannover.de/cgi-bin/grassuserwfs?" output=grass_users
  9. v.db.select grass_users where="name ~ 'Markus'"
  10. </pre></div>
  11. <p>
  12. Download 25 ship wrecks from LINZ data service:
  13. <br>
  14. (first create yourself a free API key at
  15. <a href="http://data.linz.govt.nz/p/web-services/">http://data.linz.govt.nz/p/web-services/</a>)
  16. <p>
  17. <div class="code"><pre>
  18. # run in LatLong location:
  19. URL='http://wfs.data.linz.govt.nz/&lt;PUT YOUR API KEY HERE&gt;/wfs?'
  20. # download available layers to wms_capabilities.xml
  21. v.in.wfs -l url="$URL"
  22. </pre></div>
  23. From that file we learn that the shipwreck layer is called "<tt>v:x633</tt>"
  24. and that EPSG code 4326 (LatLong WGS84) is a supported SRS for this data layer.
  25. <div class="code"><pre>
  26. v.in.wfs url="$URL" output=linz_hydro_25_wrecks name="v:x633" srs="EPSG:4326" max=25
  27. </pre></div>
  28. <h2>REQUIREMENTS</h2>
  29. The OGR library on the system needs to be compiled with Xerces C++ XML
  30. Parser support (for GML).
  31. <h2>SEE ALSO</h2>
  32. <em>
  33. <a href="g.region.html">g.region</a>,
  34. <a href="r.in.wms.html">r.in.wms</a>,
  35. <a href="v.in.ogr.html">v.in.ogr</a>
  36. </em>
  37. <h2>AUTHORS</h2>
  38. Markus Neteler, Hamish Bowman
  39. <p>
  40. <i>Last changed: $Date$</i>