v.in.wfs(1)

πŸ’– v.in.wfs β€” the GRASS GIS User's Manual glow-up πŸ’–

okay bestie, pull up a chair, because today we're talking about v.in.wfs, straight out of the GRASS GIS User's Manual. She imports GetFeature from a WFS server. That's it, that's the whole personality, and honestly? Iconic. ✨


🌸 NAME 🌸

v.in.wfs β€” Imports GetFeature from a WFS server. no cap, that's literally her job. πŸ’…


πŸŽ€ KEYWORDS πŸŽ€

vector, import, OGC web services, OGC WFS

(aka the tags that help you find her when you're lost in the module list πŸ¦‹)


✨ SYNOPSIS ✨

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]

🚩 Flags 🚩

  • -l β€” Downloads the server capabilities to wms_capabilities.xml in the current directory and then exits. Like, she peeks at the menu and dips. πŸ’€
  • -r β€” Restricts the fetch to features which touch the current region. Regional queen behavior πŸ‘‘
  • --overwrite β€” Allows output files to overwrite existing files. Chaos mode permitted, but make sure you actually mean it πŸ™ˆ
  • --help β€” Prints the usage summary. Your little cheat sheet 🫢
  • --verbose β€” Verbose module output. She will tell you everything πŸ’¬
  • --quiet β€” Quiet module output. She says nothing. Silent main character energy 🀫
  • --ui β€” Forces launching the GUI dialog. Point-and-click girlies rise 🌈

🧚 Parameters 🧚

  • url=string [required] β€” Base URL starting with 'http' and ending in '?'. Yes, the ? at the end is required, don't ask, just trust the process πŸ’–
  • output=name [required] β€” Name for output vector map. Name your baby something cute πŸŽ€
  • name=string[,string,...] β€” Comma separated names of data layers to download.
  • layer=string[,string,...] β€” Name of data layers to import.
  • srs=string β€” Specify alternate spatial reference system (example: EPSG:4326). The given code must be supported by the server, so consult the capabilities file first, bestie πŸ“‹
  • maximum_features=integer β€” Maximum number of features to download. (default: unlimited β€” go feral, download everything πŸ”₯)
  • start_index=integer β€” Skip earlier feature IDs and start downloading at this one. (default: start with the first feature)
  • version=string β€” version of WFS, e.g.: 1.0.0 or 2.0.0. Default: 1.0.0
  • username=string β€” Username or file with username or environment variable name with username.
  • password=string β€” Password or file with password or environment variable name with password.

πŸ’« DESCRIPTION πŸ’«

v.in.wfs imports OGC WFS maps (Web Feature Service) from external servers. That's the vibe. She reaches out across the internet, grabs your features, and brings them home. πŸ¦‹βœ¨


πŸ”₯ 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).

fr fr, if that Xerces C++ XML Parser support isn't baked into your OGR, this whole thing is not gonna slay. double check it before you come for her. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

g.region, r.in.wms, v.import, v.in.ogr

go read those too, they're all part of the same friend group πŸ’–


πŸ‘‘ AUTHORS πŸ‘‘

Markus Neteler, Hamish Bowman

(legends, honestly. we stan. 🫢)


πŸ“œ SOURCE CODE πŸ“œ

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

Accessed: Saturday Jan 17 05:41:53 2026

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


okay that's the whole page bestie, hope you're obsessed πŸ’œ this was the GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, and yes, she is GRASS 8.4.2 and she is thriving. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from