Hi Manfred,

maybe have a look at this rule from the default style:
natural=peak {name '${name|def:}${ele|height:m=>ft|def:}' } [0x6616 resolution 
24]
It uses the height filter to convert the unit so that Garmin software shows the 
value in the wanted unit.
I am not sure if Garmin software shows a unit, but it will show the correct 
value.

Gerd

________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von Manfred 
Haiduk <[email protected]>
Gesendet: Donnerstag, 15. Februar 2018 15:01:21
An: [email protected]
Betreff: [mkgmap-dev] Need help with string handling in mkgmap

Hi, i'm struggling with the following problem and until now, i didn't
find a solution. It seems, that in osm sometimes the height or elevation
tag is filled with the unit sign, i.e 'm' and sometimes not. So with my
current point file i either get elevation without the unit letter or
with double unit letter - i.e 'Mm'. How to handle this ?

I tried with this

height=* { set mkgmap:height='${height|subst:"m=>"}'}
ele=* { set mkgmap:ele='${ele|subst:"m=>"}'}

but it doesn't work

--

  Mit freundlichen Grüßen

#####################################################
Manfred Haiduk,
Zum Fischbach 9,
52393 Hürtgenwald
e-mail [email protected]
#####################################################

_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to