v.in.wfs.html 1.5 KB

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