Sign inSign up

osm2vectortiles/create-extracts

By osm2vectortiles

•Updated almost 9 years ago

Create extracts

Image
0

1.1K

osm2vectortiles/create-extracts repository overview

⁠create-extracts

The create-extracts component is responsible for cutting out specific country and city extracts as specified in the CSV files from the latest planet MBTiles file.

Flow Diagram

⁠Usage

⁠Submit new Extract

You can modify the city_extracts.tsv and country_extracts.tsv directly in GitHub and create a PR.

⁠Python

You can use the create_extracts.py Python script yourself to generate an extract and optionally upload it to S3.

# Create extracts limited by a bounding box specified in the TSV file
python create_extracts.py bbox planet.mbtiles city_extracts.tsv
⁠Docker

To use create-extracts inside the Docker Compose workflow you need to have a full planet.mbtiles ready in the export folder.

Now merge-jobs will merge the MBTiles files into ./export/planet.mbtiles. create-extracts will use tilelive-copy to cut out extracts for countries and cities. To produce the extracts for all cities and countries this can take up to several days. The results will be first be stored in the export folder and then uploaded to a S3 if configured.

docker-compose run create-extracts

Tag summary

Content type

Image

Digest

Size

316.6 MB

Last updated

almost 9 years ago

docker pull osm2vectortiles/create-extracts