logo separator

[mkgmap-dev] natural=peak altitude conversion

From Minko ligfietser at online.nl on Sun Apr 3 10:39:59 BST 2011

Hi,

I've noticed some inconsistencies in the rendering of heights of peaks.

In the default style file, the altitude is converted from meters to feet because Garmin likes that.
natural=peak {name '${name|def:}${ele|height:m=>ft|def:}' } [0x6616 resolution 24]

Here are some examples where it goes wrong:

Kahler Asten, near Winterberg, Germany
http://www.openstreetmap.org/browse/node/83318818
GPS shows: 256m  Mapsource: no height info 

osm tags:
* ele: 840,8
* name: Kahler Asten
* natural: peak

Wetztstein, near Winterberg, Germany
http://www.openstreetmap.org/browse/node/664200355
Gps shows 235m Mapsource: no info

osm tags:
* ele: 771 m
* name: Wetzstein
* natural: peak

Example where it is rendered correctly:

Bremberg near Winterberg, Germany
http://www.openstreetmap.org/browse/node/316037203
Gps shows 809m  Mapsource: 809m

osm tags:
* ele: 809
* name: Bremberg
* natural: peak

So only if the altitude is given in numbers (without decimal fractions or m) it is rendered correctly.
I'm sure this can be improved in the style file by some kind of logical expression but how?






More information about the mkgmap-dev mailing list