
Hi, I have added a few hacks on barriers to make more info rendering on my maps. Therefore I misuse the housenumber option to make it visible, like barriers: barrier=* & barrier ~ '(gate|entrance|lift_gate|stile|block|cycle_barrier|kissing_gate|toll_booth|turnstile|full-height_turnstile|border_control|swing_gate|log|bump_gate)' { add mkgmap:housenumber='(${barrier})' ; add mkgmap:street='bicycle:${bicycle}' ; add mkgmap:postal_code='open: ${opening_hours}' ; } In this picture you can see it went wrong somewhere, mkgmap translated the value "full-heigth_turnstile" into "Full # Eight_turnstile. So somewhere in the code mkgmap:housenumber='(${barrier})' -h is converted into #. Is this a bug or is this intended?

Hi Minko, I can reproduce the result but the problem doesn't seem to be mkgmap. The img file contains the label FULL-HEIGHT_TURNSTILE (as expected). I assume that Garmin further interprets the label, maybe because it is expected to contain a house number. Note that height might match a regex for eight (8). Gerd ligfietser wrote
Hi,
I have added a few hacks on barriers to make more info rendering on my maps. Therefore I misuse the housenumber option to make it visible, like barriers:
barrier=* & barrier ~ '(gate|entrance|lift_gate|stile|block|cycle_barrier|kissing_gate|toll_booth|turnstile|full-height_turnstile|border_control|swing_gate|log|bump_gate)' { add mkgmap:housenumber='(${barrier})' ; add mkgmap:street='bicycle:${bicycle}' ; add mkgmap:postal_code='open: ${opening_hours}' ; }
In this picture you can see it went wrong somewhere, mkgmap translated the value "full-heigth_turnstile" into "Full # Eight_turnstile. So somewhere in the code mkgmap:housenumber='(${barrier})' -h is converted into #. Is this a bug or is this intended?
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
gate.jpg (28K) <http://gis.19327.n8.nabble.com/attachment/5908145/0/gate.jpg>
-- Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html

Hi, I could imagine, -H can also be a code for # (Hash-Tag). If eight matches the regex for 8 I would expect it's changed to 8 and the result would be H8. As Garmin always capitalizes the first letter of each word, it seems eight is interpreted as normal word and -H is transformed to #. Henning

Thanks guys, I can get around this bug with a simple workaround (replace all turn-height_turnstile with turnstile), was just wondering what caused this behaviour. ________________________________ Van: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> namens Henning Scholland <osm@hscholland.de> Verzonden: woensdag 13 december 2017 06:55:48 Aan: mkgmap-dev@lists.mkgmap.org.uk Onderwerp: Re: [mkgmap-dev] bug? Hi, I could imagine, -H can also be a code for # (Hash-Tag). If eight matches the regex for 8 I would expect it's changed to 8 and the result would be H8. As Garmin always capitalizes the first letter of each word, it seems eight is interpreted as normal word and -H is transformed to #. Henning _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Gerd Petermann
-
Henning Scholland
-
lig fietser