OSM2VectorTiles makes is possible to create vector tiles from OpenStreetMap data. (UPGRADE TO OpenMapTiles!)
 
 
 
 
 
 
Go to file
Lukas Martinelli d4bd05ac49 Exit status depends on length of optimizable tiles 2015-12-12 10:24:51 +01:00
open-streets.tm2source Add more country labels 2015-12-08 17:29:13 +01:00
src Switch to klokantech tessera 2015-12-10 17:18:05 +01:00
tools Exit status depends on length of optimizable tiles 2015-12-12 10:24:51 +01:00
.travis.yml Force build images in Travis 2015-12-10 20:20:59 +01:00
LICENSE Initial commit 2015-09-07 12:42:46 +02:00
README.md Add Docker image refererence 2015-12-10 15:05:24 +01:00
docker-compose.yml Switch more compose entries to images 2015-12-10 11:48:13 +01:00

README.md

osm2vectortiles Build Status

Create Mapbox Streets compatible vector tiles for custom styling with Mapbox Studio Classic and provide easy deployment methods.

Get started

Create a custom OSM base map

TODO: Create documentation for cartographer

Deploy a custom OSM base map

TODO: Create documentation for sysadmin

Components

The project consists of several components.

Import

Import toolchain based on Imposm 3 to import OpenStreetMap data into a PostGIS database. The mapping is optimized for fast generation of vectortiles.

Import Step

Export

Export toolchain consisting of our custom tm2source project based on the import mapping and tools to scale exporting of the vectortiles horizontally.

Export Step

Serve

A very easy tileserver where you can simply drop in your tm2 style project and our produced mbtiles file and it will serve a custom styled OSM map.

Tileserver Step

Development

We use Docker extensively for development and deployment. The easiest way to get started is using Docker Compose.

Start up your PostGIS container with the data container attached.

docker-compose up -d postgis

Download a PBF and put it into the local import directory.

wget https://s3.amazonaws.com/metro-extracts.mapzen.com/zurich_switzerland.osm.pbf

Now you need to import the PBF files into PostGIS.

docker-compose up import-osm

Now you need to import several external data sources.

Import water polygons from OpenStreetMapData.com.

docker-compose up import-water

Import Natural Earth data for lower zoom levels.

docker-compose up import-natural-earth

Import custom country, sea and state labels.

docker-compose up import-labels

Now import custom SQL functions.

docker-compose up import-sql

Update the scaleranks of OSM places.

docker-compose up update-scaleranks

Export the data as MBTiles file to the export directory.

docker-compose up export-local

Serve the tiles as raster tiles from export directory.

docker-compose up serve

Docker Images

The workflow consists of several prebuilt Docker images.

Image Size
osm2vectortiles/serve ImageLayers Size
osm2vectortiles/export ImageLayers Size
osm2vectortiles/import-external ImageLayers Size
osm2vectortiles/import-sql ImageLayers Size
osm2vectortiles/import-osm ImageLayers Size
osm2vectortiles/update-scaleranks ImageLayers Size
osm2vectortiles/postgis ImageLayers Size
osm2vectortiles/pgbouncer ImageLayers Size