Scroll to navigation GRASS GIS User's Manual

NAME - Imports GetFeature from a WFS server.


vector, import, OGC web services, OGC WFS

SYNOPSIS --help [-lr] url=string output=name [name=string[,string,...]] [srs=string] [maximum_features=integer] [start_index=integer] [username=string] [password=string] [--overwrite] [--help] [--verbose] [--quiet] [--ui]


Download server capabilities to ’wms_capabilities.xml’ in the current directory and exit

Restrict fetch to features which touch the current region

Allow output files to overwrite existing files

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Base URL starting with ’http’ and ending in ’?’

Name for output vector map

Comma separated names of data layers to download

Specify alternate spatial reference system (example: EPSG:4326)
The given code must be supported by the server, consult the capabilities file

Maximum number of features to download
(default: unlimited)

Skip earlier feature IDs and start downloading at this one
(default: start with the first feature)

Username or file with username or environment variable name with username

Password or file with password or environment variable name with password

DESCRIPTION imports OGC WFS maps (Web Feature Service) from external servers.


WFS import without credentials

Import of Copernicus Sentinel-2 satellite scene footprints:

# run in Latitude-Longitude location (EPGS code 4326):
# download "sentinel:mgrs" layer: url="" name="sentinel:mgrs" output=sentinel2_mgrs

WFS import with API key

Download 25 ship wrecks from LINZ data service:
(first create yourself a free API key at

# run in LatLong location:
# download list of available layers to wms_capabilities.xml -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. url="$URL" output=linz_hydro_25_wrecks name="v:x633" srs="EPSG:4326" max=25


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


g.region,, v.import,


Markus Neteler, Hamish Bowman


Available at: source code (history)

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

© 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual

GRASS 7.8.5