Fast Vector Tile Server
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Postile-0.1.1.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Postile-0.1.1.tar.gz.
File metadata
- Download URL: Postile-0.1.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using 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+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31ab8885e2c7e5b5f302ba09aa2dba7f5b9842bd1dea22cac0e93f8eec1a3edf
|
|
| MD5 |
c52bce4c61c0d35db405d2097aab1973
|
|
| BLAKE2b-256 |
4da0d7a230152ad354f802a4a97a8c9ee2c0adbce43bb9ff9e34e2a70a7e81b2
|
File details
Details for the file Postile-0.1.1-py3-none-any.whl.
File metadata
- Download URL: Postile-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using 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+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbbac395ca529e8f9453a476254128f80aa3fca51a18fcc83d7f448647428c43
|
|
| MD5 |
0ff96e421a401544fe2c8958a80ade92
|
|
| BLAKE2b-256 |
cbabf1ea84676230314986f34a6f16ad85a5266432f73fa11c23c9bc5d6b786d
|