v.in.wfs(1grass)

v.in.wfs1grass

Imports getfeature from a wfs server.

Usage

v.in.wfs

v.in.wfs --help

v.in.wfs [-lr] url=string output=name [name=string [,string, ...]] [layer=string [,string, ...]] [srs=string] [maximum_features=integer] [start_index=integer] [version=string] [username=string] [password=string] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Keywords

vector, import, OGC web services, OGC WFS

Overview

v.in.wfs imports OGC WFS maps (Web Feature Service) from external servers.

Examples

WFS import without credentials

Import of Copernicus Sentinel-2 satellite scene footprints:

# run in Latitude-Longitude project (EPGS code 4326):
# download "sentinel:mgrs" layer:
v.in.wfs url="https://geoserver.mundialis.de/geoserver/sentinel/wfs?" name="sentinel:mgrs" output=sentinel2_mgrs
# download NRW ALKIS "ave:Flurstueck" attribute:
# set the AOI beforehand with g.region and limit import to current region with -r flag
v.in.wfs url="https://www.wfs.nrw.de/geobasis/wfs_nw_alkis_vereinfacht?" -r output=wfs_alkis_vereinfacht srs=25832
name="ave:Flurstueck" version="2.0.0" layer="Flurstueck"

WFS import with API key

Download 25 ship wrecks from LINZ data service:
(first create yourself a free API key at http://data.linz.govt.nz/p/web-services/)

# run in LatLong project:
URL=’http://wfs.data.linz.govt.nz/<PUT YOUR API KEY HERE>/wfs?’
# download list of available layers to wms_capabilities.xml
v.in.wfs -l url="$URL"

From that file we learn that the shipwreck layer is called "v:x633" and that EPSG code 4326 (LatLong WGS84) is a supported SRS for this data layer.

v.in.wfs url="$URL" output=linz_hydro_25_wrecks name="v:x633" srs="EPSG:4326" max=25

Requirements

The OGR library on the system needs to be compiled with Xerces C++ XML Parser support (for GML).

Source code

Available at: v.in.wfs source code (history)

Accessed: Monday Feb 24 17:51:46 2025

Main index | Vector index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Authors

Markus Neteler, Hamish Bowman

From grass-doc 8.4.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.