cogeo-siege
Documentation:
Source Code: https://github.com/developmentseed/cogeo-siege
Description
Create siege configuration files from Cloud Optimized GeoTIFF.
This project is mostly inspired from the great TileSiege
Install
You can install cogeo-siege
using pip
$ pip install -U pip
$ pip install -U cogeo-siege
or install from source:
$ git clone https://github.com/developmentseed/cogeo-siege.git
$ cd cogeo-siege
$ pip install -U pip
$ pip install -e .
Usage
$ cogeo-siege --help
Usage: cogeo-siege [OPTIONS] INPUT
Create Siege configuration file from COG.
Options:
-o, --output PATH Output file name [required]
--minzoom INTEGER Overide COG MinZoom.
--maxzoom INTEGER Overide COG MaxZoom.
-q, --quiet Remove progressbar and other non-error output.
--version Show the version and exit.
--help Show this message and exit.
$ cogeo-siege my_cog.tif -o test.txt
6 | 677 █████
7 | 731 █████
8 | 873 ██████
9 | 998 ██████
10 | 1284 ████████
11 | 1265 ████████
12 | 1765 ███████████
13 | 2407 ███████████████
$ head test.txt
PROT=http
HOST=localhost
PORT=8080
PATH=my_cog.tif
EXT=pbf
$(PROT)://$(HOST):$(PORT)/$(PATH)6/35/22.$(EXT)
$(PROT)://$(HOST):$(PORT)/$(PATH)6/35/21.$(EXT)
$(PROT)://$(HOST):$(PORT)/$(PATH)6/34/22.$(EXT)
$(PROT)://$(HOST):$(PORT)/$(PATH)6/35/22.$(EXT)
$(PROT)://$(HOST):$(PORT)/$(PATH)6/33/22.$(EXT)
Contribution & Development
See CONTRIBUTING.md
Authors
Created by Development Seed
See contributors for a listing of individual contributors.
License
See LICENSE