https://github.com/codeforberlin/wms-downloader
Downloads large geo TIFF files from a WMS service.
https://github.com/codeforberlin/wms-downloader
Last synced: 4 months ago
JSON representation
Downloads large geo TIFF files from a WMS service.
- Host: GitHub
- URL: https://github.com/codeforberlin/wms-downloader
- Owner: codeforberlin
- License: mit
- Created: 2017-08-12T10:43:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-24T11:09:35.000Z (over 6 years ago)
- Last Synced: 2025-09-24T22:35:30.745Z (8 months ago)
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 24
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
wms-downloader
==============
Install
-------
```bash
pip install wms-downloader
```
Usage
-----
Create a `config.yml` specifying your setup like this:
```yml
service:
version: 1.1.1
url: http://fbinter.stadt-berlin.de/fb/wms/senstadt/k_luftbild1953?
srs: EPSG:25833
format: jpeg
transparent: false
layer: 0
bbox:
west: 370000.0
south: 5800000.0
east: 415000.0
north: 5837000.0
size: 10000
resolution: 600
timeout: 300
projection: EPSG:25833
bandscount: 3
directory: images
vrtfile: tiles.vrt
tmpfile: /tmp/wms.xml
```
where:
* `service` describes the used WMS service,
* `bbox` is the bounding box for the map you want to retrieve,
* `size` is the size of an individual tile in projection units,
* `resolution` is the pixel dimension of an individual tile,
* `directory` is the directory where the downloaded images are stored,
* `vrtfile` is the path to the created vrt file, and
* `tmpfile` is the path to the (temporary) xml file used for the WMS requests.
Then run the script with the `config.yml` as argument:
```
wms-downloader config.yml
```
Help
----
```
$ wms-downloader --help
usage: Downloads large geo TIFF files from a WMS service.
positional arguments:
config config file
optional arguments:
-h, --help show this help message and exit
```