I have a map at https://radverkehrsatlas.de/ which uses Maplibre GL JS. I would like to give some feedback to users on hills and elevation changes.
I see two possible ways to do this … but I did not find any open data for Germany that I could use to add those features.
Option 1: Use Maplibre 3D Terrain
It looks like I need png-XYZ-Tiles for „terrainSource“ and „hillshadeSource“.
Does anyone know about Open Data for Germany that can be used in this way?
Option 2: Contour lines (GER: “Höhenlinien”).
Is there a dataset (for Germany) that would allow to add contour lines as pixel or vector data to maps?
I see that Thunderforest has data for Germany in eg. Landscape - Thunderforest, but I don’t see a data source reference.
After posting this, I found more links and Info. I will update this thread with what I find…
Still not sure what the easiest path is. Did not find something for Maplibre (Option 1), yet, that looks like it would work out of the box. And also no easy way to add contour lines, but a lot of interesting hints at the raw data.
https://extract.bbbike.org/ has exports for Shuttle Radar Topography Mission (SRTM) contour lines in 4 formats
OpenSnowMap.org shows hillshades and contour lines. It lists " * ASTER GDEM is a product of METI and NASA; SRTM 1 Arc-second Global; EU-DEM: Prroduced using Copernicus data and information funded by the European Union" as sources.
LIDAR Daten von offenen Datenquellen bei Ländern/Ämtern/Regierungen oder anderen freien Daten - zusammengestellt ins .hgt Format von Sonny - DEM Altitude Models für viele europäische Länder.
ALOS World 3D30 nur verfügbar zwischen 60° Süd und 60° Nord.
SRTM 1" v3.0 - dort wo ALOS Word 3D viele Fehler hat - oder teils nicht verfügbar ist - sehr selten.
Viewfinderpanormas 1" - then 3" - Südlich 60° Süd, und Nördlich 60° Nord.
SRTM v3.01 3" v3.0 - ganz ganz selten. 8 Kacheln wo alle obigen Quellen nicht verfügbar sind.
For hillshading, I currently use AWS Terrain Tiles (demo) as a replacement for the wmflabs tiles. Note that there might be GDPR/DSGVO issues in Germany as Amazon is US-based.
Zu den Konturlinien kam ja schon was zusammen.
Aber wenn du keine Konturlinien erstellen möchtest sondern den Streckenabschnitten direkt eine Neigung zuweisen, die dann angezeigt werden kann, würde ich auf irgendein DGM zurückgreifen und daraus dann mittels üblicher Geoverarbeitungswerkzeuge die Neigung berechnen und die Werte entsprechend abtasten.
DGM z.B. hier in recht schlechter Aufllösung, gibt aber sicher auch andere Quellen
For anyone interested in hosting their own map tiles and maybe don’t have the time or computing power to generate them themselves, I’ve made a bunch of premade mbtiles and pmtiles files available through torrent and set up my server to seed them. …
This includes the TerrainRGB/Terrarium raster-dems I created to use for dynamic hillshade and 3d terrain in MapLibre, OpenMapTiles generated by planetiler, and color-relief I generated in gdal for bathymetry and land elevations. These are all made from open sources, and parts I use in my own maps.