Skip to content
This repository has been archived by the owner on Apr 15, 2018. It is now read-only.

Jump start your development of custom vector tiles (MVT) from OpenStreetMap

Notifications You must be signed in to change notification settings

osm2vectortiles/custom-vt-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Vector Tiles from OpenStreetMap

A skeleton to start custom vector tile development from OpenStreetMap. It contains an example mapping and source definition for buildings.

Run Workflow

The entire project is structured components using Docker containers to work together. Ensure you meet the prerequisites.

Start up the PostgreSQL database with the PostGIS extension.

docker-compose up -d postgres

Now download a OSM PBF extract and store it in the ./data dir.

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

Import the OSM PBF.

docker-compose run import-osm

Import the required database schema (views, prepared tables and helper functions).

docker-compose run db-schema

Export the vector tiles for the planet.

docker-compose run export-vectortiles

To visualize and work with the vector tiles you can spin up Mapbox Studio in a Docker container and visit localhost:3000.

Then open the vector tile source with Browse and choose from /projects/vector-datasource.tm2source.

docker-compose up mapbox-studio

About

Jump start your development of custom vector tiles (MVT) from OpenStreetMap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages