Sign inSign up

joeakeem/contour-lines

By joeakeem

•Updated over 5 years ago

A docker image to create vector tiles for contour lines and relief raster tiles of europe (mbtiles).

Image
0

266

joeakeem/contour-lines repository overview

⁠Countour Lines and Hillshade files for Europe

A docker image to create vector tiles for contour lines and hillshade (relief) raster tiles of europe (mbtiles files).

The relief and is based on data from SRTM 90m DEM Digital Elevation Database⁠ and OpenSlopeMap⁠.

⁠Getting it

git clone https://github.com/joe-akeem/contour-tiles.git

⁠Building the mbtiles files

cd contour-tiles
docker-compose run contour-tiles

This will build the mbtiles files in the folder ./osm/mbtiles

⁠Inspecting the tiles

To inspect the mbtiles files a local tileserver can be started as follows:

docker-compose up -d contour-tileserver

The web interface of the tile server is made available at localhost:8080⁠. A basic style is also available and can be used to view the generated data e.g. as Vector Tiles⁠.

You will notice that there are contour lines for 100 meter and for 20 meter equidistance. The 100 meter equidistance lines will start showing from zoom level 10 while the 20 meter equidistance lines are showing from zoom level 13 upwards.

The contour lines are tagged with three fields:

  • elev: the elevation of the contour line in meters above sea level
  • `distance: the equidistance of the contour line (20m or 100m) which helps styling them differently. E.g. you might want to show the 100 meter lines more prominent.
  • type: this is currently normal for all contour lines. There are plans to encode the terrain in this field (e.g. normal, rock, glacier) so you can style the lines differently depending on the terrain (e.g. blue for glaciers).

Relief with contour lines

Tag summary

Content type

Image

Digest

Size

391.5 MB

Last updated

over 5 years ago

docker pull joeakeem/contour-lines