This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61f1dbd
commit ef48213
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
# Generate Vector Tiles from TM2Source | ||
|
||
*This is a work in progress towards OSM2VectorTiles v3.0* | ||
[![Docker Automated build](https://img.shields.io/docker/automated/openmaptiles/generate-vectortiles.svg?maxAge=2592000)]() [![](https://images.microbadger.com/badges/image/openmaptiles/generate-vectortiles.svg)](https://microbadger.com/images/openmaptiles/generate-vectortiles) | ||
|
||
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 `export-mbtiles`. | ||
You need to provide the database credentials and run `generate-vectortiles`. | ||
|
||
```bash | ||
docker run --rm \ | ||
-v ./osm2vectortiles.tm2source:/tm2source \ | ||
-v ./:/export \ | ||
-v $(pwd)/project.tm2source:/tm2source \ | ||
-v $(pwd):/export \ | ||
-e POSTGRES_USER="osm" \ | ||
-e POSTGRES_PASSWORD="osm" \ | ||
-e POSTGRES_HOST="127.0.0.1" \ | ||
-e POSTGRES_DB="osm" \ | ||
-e POSTGRES_PORT="5432" \ | ||
osm2vectortiles/generate-vectortiles | ||
openmaptiles/generate-vectortiles | ||
``` |