Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeforberlin/wfs-downloader
Downloads GML files from a set of WFS service in a pseudo-paginated way using bounding boxes.
https://github.com/codeforberlin/wfs-downloader
boundingbox download gml ogc python webfeatureservice wfs
Last synced: 3 months ago
JSON representation
Downloads GML files from a set of WFS service in a pseudo-paginated way using bounding boxes.
- Host: GitHub
- URL: https://github.com/codeforberlin/wfs-downloader
- Owner: codeforberlin
- License: mit
- Created: 2016-05-06T15:20:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-08T19:27:30.000Z (about 3 years ago)
- Last Synced: 2024-03-15T10:21:39.918Z (8 months ago)
- Topics: boundingbox, download, gml, ogc, python, webfeatureservice, wfs
- Language: Python
- Homepage: https://github.com/codeforberlin/wfs-downloader
- Size: 16.6 KB
- Stars: 25
- Watchers: 9
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
WFS Downloader
==============Downloads GML files from a set of WFS service in a pseudo-paginated way using bounding boxes and combine them again to one file.
Install
-------```
pip install wfs-downloader
```Usage
-----Create a `config.yml` specifying your setup like this:
```yml
url: http://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_wfs_baumbestand_an
layer: fis:s_wfs_baumbestand_anbbox:
west: 370000.0
south: 5800000.0
east: 415000.0
north: 5837000.0size: 10000
outputfile: strassenbaeume.xml
projection: EPSG:25833
tmpdir: /tmp
```where:
* `url` is the url of the WFS Service,
* `layer` is the name of the Layer,
* `bbox` is the bounding box for th objects you want to retrieve,
* `size` is the extend of a single request (or page),
* `outputfile` is the name of the resulting GML file,
* `projection` is the used projection, and
* `tmpfile` is the path to the directory to store temporary files for each request.Then run the script with the `config.yml` as argument:
```
wfs-downloader config.yml
```Help
----```
$ wfs-downloader --help
usage: Downloads GML files from a set of WFS service in a pseudo-paginated way using bounding boxes and combine them again to one file. The WFS services are specified in settings.py.positional arguments:
config config fileoptional arguments:
-h, --help show this help message and exit
--no-download skip the download
--no-combine skip the combine
```