rounding hyper-accurate elevations ${ele}

I was slightly surprised when I discovered the altitude "241.934997558594" on my map. This is actually the hyper-accurate information from the database: https://www.openstreetmap.org/node/32969675 (there's any more such examples). Since I do not know the reason for this value, I don't want to change the database. Does mkgmap provide a function similar to Math.round() or should I simply use ${ele|part:".:1"} to skip the decimals?

Hi, I think the conv filter does what you want. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von J J <joern.de@gmail.com> Gesendet: Mittwoch, 12. Februar 2020 13:42 An: Development list for mkgmap Betreff: [mkgmap-dev] rounding hyper-accurate elevations ${ele} I was slightly surprised when I discovered the altitude "241.934997558594" on my map. This is actually the hyper-accurate information from the database: https://www.openstreetmap.org/node/32969675 (there's any more such examples). Since I do not know the reason for this value, I don't want to change the database. Does mkgmap provide a function similar to Math.round() or should I simply use ${ele|part:".:1"} to skip the decimals?

Hi J J The default style uses this rule: natural=peak {name '${name|def:}${ele|height:m=>ft|def:}'} [0x6616 resolution 24] AFAIK it works fine? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen@hotmail.com> Gesendet: Mittwoch, 12. Februar 2020 14:09 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] rounding hyper-accurate elevations ${ele} Hi, I think the conv filter does what you want. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von J J <joern.de@gmail.com> Gesendet: Mittwoch, 12. Februar 2020 13:42 An: Development list for mkgmap Betreff: [mkgmap-dev] rounding hyper-accurate elevations ${ele} I was slightly surprised when I discovered the altitude "241.934997558594" on my map. This is actually the hyper-accurate information from the database: https://www.openstreetmap.org/node/32969675 (there's any more such examples). Since I do not know the reason for this value, I don't want to change the database. Does mkgmap provide a function similar to Math.round() or should I simply use ${ele|part:".:1"} to skip the decimals? _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

On Wed, Feb 12, 2020 at 01:42:51PM +0100, J J wrote:
I was slightly surprised when I discovered the altitude "241.934997558594" on my map. This is actually the hyper-accurate information from the database: https://www.openstreetmap.org/node/32969675 (there's any more such examples). Since I do not know the reason for this value, I don't want to change the database.
Did you see the note? That may explain the high precision. ael
participants (3)
-
ael
-
Gerd Petermann
-
J J