logo separator

[mkgmap-dev] Best practice including SRTM lines

From Minko ligfietser at online.nl on Tue May 17 13:29:18 BST 2011

The easiest way is to download already made strm contourlines from openmtbmap.org or compterteddy: 
http://openmtbmap.org/download/#contourlines
http://wiki.openstreetmap.org/wiki/User:Computerteddy#H.C3.B6henlinien_von_Europa

If you want to include them into your maps to make altitude profiles it will be a bit more difficult but it's possible. 

Select the tiles that you need, lets say 12345678.img 12345679.img etc.
Include them to your mkgmap.args list, make sure that those contour img's have a higher tile number. With the mkgmap option show-profiles=1 you can make altitude profiles. It's also important that the zoom levels are the same. You can see which zoom levels are used with gpsmapedit. With this programm you also can modify the tile numbers and add more zoom levels if needed. Save the edited img as mp file. For my Benelux maps the only way I can see the contour lines in the osm map is when mkgmap compiles the img from the mp files:

mapname: 10010057
description: NL-Haarlem
input-file: c:\Downloads\Benelux\10010057.osm.gz

# contours

mapname: 10010101
description: Openfietsmap (contours)
input-file: contours\10010101.mp


Sometimes it works if you use input-file: contours\10010101.img alone without the line "mapname: 10010101" but since I use everytime an upgraded version of mkgmap I have to process the contour files every time again, oherwise they are not visible (I see only the altitude numbers, not the lines).



More information about the mkgmap-dev mailing list