1v.in.wfs(1) GRASS GIS User's Manual v.in.wfs(1)
2
3
4
6 v.in.wfs - Imports GetFeature from a WFS server.
7
9 vector, import, OGC web services, OGC WFS
10
12 v.in.wfs
13 v.in.wfs --help
14 v.in.wfs [-lr] url=string output=name [name=string[,string,...]]
15 [srs=string] [maximum_features=integer] [start_index=integer]
16 [username=string] [password=string] [--overwrite] [--help]
17 [--verbose] [--quiet] [--ui]
18
19 Flags:
20 -l
21 Download server capabilities to ’wms_capabilities.xml’ in the cur‐
22 rent directory and exit
23
24 -r
25 Restrict fetch to features which touch the current region
26
27 --overwrite
28 Allow output files to overwrite existing files
29
30 --help
31 Print usage summary
32
33 --verbose
34 Verbose module output
35
36 --quiet
37 Quiet module output
38
39 --ui
40 Force launching GUI dialog
41
42 Parameters:
43 url=string [required]
44 Base URL starting with ’http’ and ending in ’?’
45
46 output=name [required]
47 Name for output vector map
48
49 name=string[,string,...]
50 Comma separated names of data layers to download
51
52 srs=string
53 Specify alternate spatial reference system (example: EPSG:4326)
54 The given code must be supported by the server, consult the capa‐
55 bilities file
56
57 maximum_features=integer
58 Maximum number of features to download
59 (default: unlimited)
60
61 start_index=integer
62 Skip earlier feature IDs and start downloading at this one
63 (default: start with the first feature)
64
65 username=string
66 Username or file with username or environment variable name with
67 username
68
69 password=string
70 Password or file with password or environment variable name with
71 password
72
74 v.in.wfs imports OGC WFS maps (Web Feature Service) from external
75 servers.
76
78 WFS import without credentials
79 Import of Copernicus Sentinel-2 satellite scene footprints:
80
81 # run in Latitude-Longitude location (EPGS code 4326):
82 # download "sentinel:mgrs" layer:
83 v.in.wfs url="https://geoserver.mundialis.de/geoserver/sentinel/wfs?" name="sentinel:mgrs" output=sentinel2_mgrs
84
85 WFS import with API key
86 Download 25 ship wrecks from LINZ data service:
87 (first create yourself a free API key at
88 http://data.linz.govt.nz/p/web-services/)
89
90 # run in LatLong location:
91 URL=’http://wfs.data.linz.govt.nz/<PUT YOUR API KEY HERE>/wfs?’
92 # download list of available layers to wms_capabilities.xml
93 v.in.wfs -l url="$URL"
94 From that file we learn that the shipwreck layer is called "v:x633" and
95 that EPSG code 4326 (LatLong WGS84) is a supported SRS for this data
96 layer.
97 v.in.wfs url="$URL" output=linz_hydro_25_wrecks name="v:x633" srs="EPSG:4326" max=25
98
100 The OGR library on the system needs to be compiled with Xerces C++ XML
101 Parser support (for GML).
102
104 g.region, r.in.wms, v.import, v.in.ogr
105
107 Markus Neteler, Hamish Bowman
108
110 Available at: v.in.wfs source code (history)
111
112 Main index | Vector index | Topics index | Keywords index | Graphical
113 index | Full index
114
115 © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
116
117
118
119GRASS 7.8.5 v.in.wfs(1)