快速矢量平铺服务器
Postile的Python项目详细描述
位置
快速映射框矢量平铺服务器
功能
- 从postgis后端提供mapbox矢量图块
- 可以用postgis读取tm2文件数据源
- 可以单独为postgis层服务
- 实时处理对WebMercator投影的重新投影(仅适用于单层,不适用于TM2源)
- 由于asyncpg
- 用openmaptiles vector tile schema 测试
需要
- postgis存储的功能>;=2.4.0
安装
python 3.6需要运行postile
pip install cython
pip install -e .
postile --help
使用Docker容器
发帖人:
docker run --network host oslandia/postile postile --help
单独为postgis层服务的示例
postile --pguser **** --pgpassword **** --pgdatabase mydb --pghost localhost --listen-port 8080 --cors
然后层boundaries
可以使用:
http://localhost:8080/boundaries/z/x/y.pbf?fields=id,name
fields
是可选的,当不存在时,矢量平铺中只编码几何图形。
有关使用openmaptiles架构的具体示例,请参见this tutorial