GithubHelp home page GithubHelp logo

isabella232 / extracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openmaptiles/extracts

0.0 0.0 0.0 296 KB

Create Country and City extracts from OpenMapTiles or any other MBTiles

License: MIT License

Shell 12.14% Python 87.86%

extracts's Introduction

MBTiles Extracts from OpenMapTiles

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

It is made especially for cutting out vector tiles from the latest OSM2VectorTiles planet dump but can be adapted to support other MBTiles formats.

Usage

Submit new Extract

You can modify the extracts.csv directly in GitHub and create a PR.

Download Planet MBTiles

Download the entire planet and put it into data.

wget -O ./data/planet.mbtiles https://osm2vectortiles-downloads.os.zhdk.cloud.switch.ch/v2.0/planet_2016-06-20_3d4cb571d3d0d828d230aac185281e97_z0-z14.mbtiles

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 CSV file
python create_extracts.py bbox planet.mbtiles extracts.csv

Docker

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

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 data folder and then uploaded to a S3 if configured.

docker-compose run create-extracts

extracts's People

Contributors

lukasmartinelli avatar manuelroth avatar clkao avatar cascafico avatar mbrickn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.