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 towms_capabilities.xmlin 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.0or2.0.0. Default:1.0.0username=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
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms