[mkgmap-dev] version 2718 and construction {name '${name} text'|'text'} not work
From Steve Ratcliffe steve at parabola.me.uk on Sat Sep 28 23:47:56 BST 2013
Hi On 27/09/13 12:53, Maks Vasilev wrote: > name=* {name '${name|subst:text1=> txt1|subst:text2=> txt2}' } > After this line any action with name not work. I can't insert > [continue with_actions] without garmin code of object type. Yes that is the way it works - the first call to 'name' sets the name of the object and it can not be set again. It is not always necessary to use the name action, but if you are using it then the rules must be arranged so that the name action is only called when you definitely want to set the name. Alternatively you could set the name tag {set name '${name|subst:text1=> txt1|subst:text2=> txt2}' } or set a temporary tag first to be used in a later name action. { set a_name '...' So in your github example you could try: #1 - try to enable/disable this line highway=* & name ~ '.*(street).*' {set name '${name|subst:street=>} str.'} #2 highway=* {name '${name} ${ref|highway-symbol:box}' | '${ref|highway-symbol:box}' | '${name}'} [0x03 resolution 19] #3 Not needed ## highway=* [0x03 resolution 19] Best wishes ..Steve
- Previous message: [mkgmap-dev] version 2718 and construction {name '${name} text'|'text'} not work
- Next message: [mkgmap-dev] Commit: r2724: Make sure that remove-short-arcs with no argument is evaluated with the default value (5.0)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list