發表文章

目前顯示的是有「python」標籤的文章

Tilezen tileserver的評論

Tilezen tileserver Language: Python Layer definitions: SQL in jinja2 templates, YAML Vector tile formats: Mapbox Vector Tiles, TopoJSON, and GeoJSON Data source support: PostGIS Tilezen tileserver was written by Mapzen to replace their TileStache-based vector tile generation. Having been written by developers who wrote previous vector tile servers, it combines ideas and functionality other options don’t have. The datasource definitions are written in SQL + YAML, a common choice, but unlike other options, the SQL is in its own files which are preprocessed by the jinja2 templating engine. This adds some complexity, but a great deal of power. Selecting different features by zoom level normally requires repetative SQL and lengthy UNION ALL queries, but the preprocessing allows queries to be written more naturally. Tileserver’s unique feature is the post-processing capabilities it offers. This allows vector tiles to be operated on after the database, altering geometries, changin...

向量圖磚伺服器比較

依照Paul Norman這篇文章的比較,可以看出各家向量圖磚伺服器,在資料來源、資料更新、非OSM資料支援、GeoJSON資料支援、TopoJSON與Mapbox Vector Tiles支援的比較表 Which should I use? What you should use depends on your needs. First figure out what support you need for the full planet, updates, data sources, and output formats. If you need diff update support, then you need something that can create a single vector tile and Tilemaker won’t work. If you need TopoJSON support, node-mapnik won’t work. Server Full planet Diff updates Non-OSM data GeoJSON TopoJSON Mapbox Vector Tiles node-mapnik Yes Yes Yes Some No Yes Tilezen tileserver Yes Yes Yes Yes Yes Yes Tegola Yes Yes Yes No No Yes t-rex Yes Yes Yes No No Yes TileStache Yes Yes Yes Yes No Yes Tilemaker No No Yes No No Yes VectorTileCreator Unknown No No No No No Posted by  Paul Norman   http://www.paulnorman.ca/blog/2016/11/serving-vector-tiles/