项目作者: RomainQuidet

项目描述 :
Docker image to generate elevation contours pbf files
高级语言: Shell
项目地址: git://github.com/RomainQuidet/generate-osm-contours.git
创建时间: 2018-04-08T15:51:43Z
项目社区:https://github.com/RomainQuidet/generate-osm-contours

开源协议:MIT License

下载


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:

  1. USER=your_user_name
  2. 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.

  1. --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

  1. 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.