Sign inSign up

openmaptiles/generate-vectortiles

By openmaptiles

•Updated 7 months ago

Generate MBTiles containing MVT vector tiles from a TM2Source project

Image
3

100K+

openmaptiles/generate-vectortiles repository overview

⁠Generate Vector Tiles from TM2Source

Docker Automated build

A Docker image to export MBTiles (containing gzipped MVT PBF) from a TM2Source project. The TM2Source project usually references a database you need to link against this container.

⁠Usage

You need to provide the database credentials and run generate-vectortiles.

docker run --rm \
    -v $(pwd)/project.tm2source:/tm2source \
    -v $(pwd):/export \
    -e PGHOST="127.0.0.1" \
    -e PGDATABASE="openmaptiles" \
    -e PGUSER="openmaptiles" \
    -e PGPASSWORD="openmaptiles" \
    openmaptiles/generate-vectortiles

Optional environment variables:

  • PGPORT (defaults to 5432)

Legacy env variables are still supported, but they are not recommended: POSTGRES_HOST,POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_PORT

Tag summary

Content type

Image

Digest

sha256:453a8ec44…

Size

107.7 MB

Last updated

7 months ago

docker pull openmaptiles/generate-vectortiles