Skip to content

Vector Tile Server Overview

Knut Ole edited this page Jan 9, 2015 · 28 revisions

Setting up a new vector tile server (on PX), with Planet OSM in PostGIS, served up as vector and/or raster tiles.

GOALS:

    1. Entire OSM Planet file rendered to vector tiles.
    1. Raster tiles upon request.
    1. Vector tiles upon request.
    1. On-demand styling of entire OSM Planet.
    1. Served securely and privately.

===

Notes:

  1. Import data with mappings.json - sql mappings.
  2. Read data from PostGIS with sql queries. These are set in Mapnik XML sheet, like this: postgis.xml
  3. Create vector tiles from that, with a layer in the vector tile for each table. Ends up being a #layer in CartoCSS.
  4. Grind the whole planet - or request a createVectorTile from PostGIS.

===

Installation of PostGIS

For detailed install instructions for PostGIS, see this wiki entry.

Installation of Mapnik

For detailed instructions for installing Mapnik, see this wiki entry.

Installation of TileStache

Use a fork of TileStache, here
and see here: https://github.com/mapzen/vector-datasource

References:

TileStache: http://tilestache.org/doc/
TileStache.Vector: http://tilestache.org/doc/TileStache.Vector.html
Integration-1 fork
Mapbox/Mike on whole world MVT: blog
Mapbox Vector Tiles: blog
OSM Import old-skool
O.G. Vector Tiles for OSM: link
Tile coordinates reference
OSM Bright -start here!
Other people's hand in blenders: http://www.gretchenpeterson.com/blog/making-a-basemap-with-osm-data-some-notes/

Clone this wiki locally