Git Product home page Git Product logo

generate-osm-contours's Introduction

generate-osm-contours

Docker image to generate elevation contours pbf files

What for?

I've always wondered how mapbox vector tiles are created, why elevation contours are so difficult to find to build my own maps...

So I modified OpenMapTiles toolchain to build my own elevation vector tiles.

How to use it

It is already integrated into my Contour branch of OpenMapTiles toolchain. Check it here: https://github.com/RomainQuidet/openmaptiles

Standalone usage

You'll need to register to https://ers.cr.usgs.gov/register/ in order to allow phyghtmap to download elevation data. It's free.

Once you have your user and login, create a file named .earthexplorerCredentials in the root directory of the repo with the content:

USER=your_user_name
PASSWORD=your_password

and pass it to the docker run as environment file.

You'll need to pass to the image a volume where stands your .poly file defining the area you need to create.

--mount source=my_directory,target=/import

In my_directory directory, download from http://download.geofabrik.de/ a poly file the image will use.

And just run the image

docker run --rm --env-file=.earthexplorerCredentials --mount source=my_directory,target=/import generate-osm-contours:1.0

Output

The image will generate a pbf of contours data in OSM format, thanks to http://katze.tfiu.de/projects/phyghtmap/

It is configured to generate 10m steps lines.

generate-osm-contours's People

Contributors

romainquidet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

irfancoder

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.