How to download geodata from a fis broker wfs (web feature server) via qgis and save it as a shapefile.
- Go to fis broker
- Choose one of the data sets. For example 'Hausumringe'.
- Click 'Zum Downloadlink (WFS)'
- Look for the 'Rechneradresse' point. Its an url like this one for the house-shapes in Berlin: http://fbinter.stadt-berlin.de/fb/wfs/geometry/senstadt/re_hausumringe
- Download WFS client plugin. You can install it via QGis by this steps: 'Plugins' -> 'Manage and Install Plugins...' -> search for 'wfs' -> choose 'WFS 2.0 Client' -> 'Install Plugin'
- Download Geodata. Open the plugin by clicking on 'Web' -> 'WFS 2.0 Client' -> 'WFS 2.0 Client'. Type in an url of a WFS. For example : http://fbinter.stadt-berlin.de/fb/wfs/geometry/senstadt/re_hausumringe. Click on 'Get Capabilities'. After that you can define a bounding box, a feature limit and a SRS (spatial reference system). For the datasets of houses you must choose featureCount = 550000 and SRS = EPSG:4258. SRS = EPSG:25833 should always work for the Berlin datasets.
- Save as shapefile
If you need to convert the srs of the shapefile you can do it with the help of ogr2ogr
:
This command converts input.shp
(SRS = EPSG:25833) to output.shp
(SRS = EPSG:4326).
$ ogr2ogr -t_srs EPSG:4326 -s_srs EPSG:25833 output.shp input.shp
Get information of the different spatial reference systems at http://epsg.io/
ogr2ogr
, the tool mentioned above, is part of the gdal suite. You can use it to download all data from a WFS server like so:
ogr2ogr -f GeoJSON output.geojson WFS:https://path-to-wfs.com/endpoint
This will produce an output.geojson
that contains all data from the endpoint. You can define other output formats and reproject the data as described above if needed.