logo separator

[mkgmap-dev] Small bug in mkgmap style handling on action rules

From Steve Ratcliffe steve at parabola.me.uk on Thu Feb 4 17:03:33 GMT 2010

On 04/02/10 16:32, Felix Hartmann wrote:
> Hi, I just discovered a bug (this is happening on both trunk as well as
> style-speed).

Yes it sounds familiar.

I'll add the following test.

WAY
highway=road
mtb:scale=2
mtb:scale:uphill=yes

<<<lines>>>
( mtb:scale=* | mtb:scale:uphill=* )
	{ set name='${name} M${mtb:scale}${mtb:scale:uphill}'
		| '${name} M${mtb:scale}.'
		| '${name} Mx${mtb:scale:uphill}'
		| 'M${mtb:scale}${mtb:scale:uphill}'
		| 'M${mtb:scale}.'
		| 'Mx${mtb:scale:uphill}'
		}
highway=road [0x1]

Style tester currently says:

WAY 1: Line 0x1, name=<M2yes M2yes>, ref=<null>, res=24-24 (1/1),(2/2),
ERROR expected result is:
WAY 1: Line 0x1, name=<M2yes>, ref=<null>, res=24-24 (1/1),(2/2),

..Steve



More information about the mkgmap-dev mailing list