PosTile
Fast Mapbox Vector Tile Server
Features
- serve Mapbox Vector Tiles from a PostGIS backend
- can read TM2 file data sources with postgis
- can serve PostGIS layers individually
- handle on-the-fly reprojection to web mercator projection (only for single layers, not tm2 sources)
- Connection pooling and asynchronous requests thanks to asyncpg
- tested with openmaptiles vector tile schema
Requires
- features stored with PostGIS >= 2.4.0
Installation
Python 3.6 is required to run Postile
pip install cython
pip install -e .
postile --help
Using a Docker container
Start Postile with:
docker run --network host oslandia/postile postile --help
Example of serving postgis layers individually
postile --pguser **** --pgpassword **** --pgdatabase mydb --pghost localhost --listen-port 8080 --cors
Then layer boundaries can be served with:
http://localhost:8080/boundaries/z/x/y.pbf?fields=id,name
fields is optional, and when absent only geometries are encoded in the vector tile.
For a concrete example using OpenMapTiles schema see this tutorial
Metadata
Release files for Postile 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Postile-0.1.1.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Postile-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / Postile-0.1.1.tar.gz
| Download URL | Postile-0.1.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31ab8885e2c7e5b5f302ba09aa2dba7f5b9842bd1dea22cac0e93f8eec1a3edf
|
|
BLAKE2b-256 checksum How to use checksums |
4da0d7a230152ad354f802a4a97a8c9ee2c0adbce43bb9ff9e34e2a70a7e81b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6rc1+
|
Release files / Postile-0.1.1-py3-none-any.whl
| Download URL | Postile-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbbac395ca529e8f9453a476254128f80aa3fca51a18fcc83d7f448647428c43
|
|
BLAKE2b-256 checksum How to use checksums |
cbabf1ea84676230314986f34a6f16ad85a5266432f73fa11c23c9bc5d6b786d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6rc1+
|