logo separator

[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


More information about the mkgmap-dev mailing list