maxspeed replacement don't works

Hello, In my style I have a replacement for maxspeed: highway=* & maxspeed=DE:urban {set maxspeed = 50} but this don't works in all cases. The maxspeed is added to the highway-name by the style-rule highway=* {name '${name} (${ref}) (${maxspeed})' | '${ref} (${maxspeed})' | '${name} (${maxspeed})' | '${name} (${ref})' | '${ref}' | '${name}' } see: <http://img82.imageshack.us/img82/9241/urban1.png> why is the DE:urban replaced for this way: http://www.openstreetmap.org/browse/way/4468547 but not for this one: http://www.openstreetmap.org/browse/way/7975270 ? mkgmap version is 1265. Greetings, Chris

Chris-Hein Lunkhusen wrote:
Hello,
In my style I have a replacement for maxspeed:
highway=* & maxspeed=DE:urban {set maxspeed = 50}
but this don't works in all cases.
The maxspeed is added to the highway-name by the style-rule
highway=* {name '${name} (${ref}) (${maxspeed})' | '${ref} (${maxspeed})' | '${name} (${maxspeed})' | '${name} (${ref})' | '${ref}' | '${name}' }
see: <http://img82.imageshack.us/img82/9241/urban1.png>
why is the DE:urban replaced for this way:
http://www.openstreetmap.org/browse/way/4468547
but not for this one:
http://www.openstreetmap.org/browse/way/7975270
?
mkgmap version is 1265.
Greetings, Chris
Because of how the rules work. Maybe another roule already matched that way, and only ONE rule is enacted. So if you have open rules and you want to be sure, add it to all of them. So you need to merge the above two rules into one.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Felix Hartmann schrieb:
Because of how the rules work. Maybe another roule already matched that way, and only ONE rule is enacted. So if you have open rules and you want to be sure, add it to all of them. So you need to merge the above two rules into one.
Uhh, I thougth that for action rules {...} mfgmap won't stop. But maybe I can work with the 'continue' flag? Is it already included in the main branch? Chris

Chris-Hein Lunkhusen wrote:
Felix Hartmann schrieb:
Because of how the rules work. Maybe another roule already matched that way, and only ONE rule is enacted. So if you have open rules and you want to be sure, add it to all of them. So you need to merge the above two rules into one.
Uhh, I thougth that for action rules {...} mfgmap won't stop. But maybe I can work with the 'continue' flag? Is it already included in the main branch?
No neither is it in the branch, nor would it work for action rules
Chris
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Chris-Hein Lunkhusen schrieb:
Uhh, I thougth that for action rules {...} mfgmap won't stop. But maybe I can work with the 'continue' flag? Is it already included in the main branch?
The action rule handling is beeing fixed in the style branch. It is not perfect yet, but it is working much better in this regard than the main branch. So it might be worth a try. Gruss Torsten

Torsten Leistikow wrote:
Chris-Hein Lunkhusen schrieb:
Uhh, I thougth that for action rules {...} mfgmap won't stop. But maybe I can work with the 'continue' flag? Is it already included in the main branch?
The action rule handling is beeing fixed in the style branch. It is not perfect yet, but it is working much better in this regard than the main branch. So it might be worth a try.
A try yes, but actually the strict ordering without continue (which is not working) is even worse in my opinion against the trunk. Because with the trunk you only need to create the rules with a spreadsheet for each possible combination (yes you might easily add up to 100.000 action rules then - which will slow down mkgmap a bit) but it is working then. Also the "continue" on non action rules did not seem to work for me in the style branch (mkgmap taking ages).
Gruss Torsten _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Torsten Leistikow schrieb:
I thougth that for action rules {...} mfgmap won't stop. But maybe I can work with the 'continue' flag? Is it already included in the main branch?
The action rule handling is beeing fixed in the style branch. It is not perfect yet, but it is working much better in this regard than the main branch. So it might be worth a try.
Thanks, the Style-Branch fixed that error. Greetings Chris
participants (3)
-
Chris-Hein Lunkhusen
-
Felix Hartmann
-
Torsten Leistikow