Giter Site home page Giter Site logo

codeforberlin / wfs-downloader Goto Github PK

View Code? Open in Web Editor NEW
25.0 9.0 5.0 17 KB

Downloads GML files from a set of WFS service in a pseudo-paginated way using bounding boxes.

Home Page: https://github.com/codeforberlin/wfs-downloader

License: MIT License

Python 100.00%
wfs ogc python gml boundingbox webfeatureservice download

wfs-downloader's Introduction

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:

url: http://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_wfs_baumbestand_an
layer: fis:s_wfs_baumbestand_an

bbox:
  west:   370000.0
  south: 5800000.0
  east:   415000.0
  north: 5837000.0

size: 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 file

optional arguments:
  -h, --help     show this help message and exit
  --no-download  skip the download
  --no-combine   skip the combine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.