You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#1 2013-10-20 11:16:19
- Bernhard Hiller
- Member

- Registered: 2011-05-10
- Posts: 1,122
mkgmap: add maxspeed to name
I tried to add the maxspeed value to the name, if present. In my lines file, I do:
highway=* & maxspeed=* {set name='${maxspeed}-${name}'; set mkgmap:display_name='${maxspeed}-${mkgmap:display_name}'}but it does not work: never do I see a maxspeed value before the name (mkgmap version 2724).
Strangely, it works well in the points file, where I add the religion to the name of a place_of_worship by
amenity=place_of_worship & religion=* { set name='${religion}-${name}' }I am confused now...
How to do it correctly?
Offline
#2 2013-10-20 15:26:42
- Bernhard Hiller
- Member

- Registered: 2011-05-10
- Posts: 1,122
Re: mkgmap: add maxspeed to name
Found the source of the problem: "name" has a special rule
Once the name is set it cannot be overridden
(from the Style rules manual of mkgmap).
Because other rules regarding the name were applied before that in my style, that later line had no effect (instead of the expected result of combining the previously set name with the maxspeed value).
I had to change all the previous lines, a lot of copy-paste-code...
Offline
Pages: 1