logo separator

[mkgmap-dev] Style-File not parsed from top to bottom - BUG:

From Steve Ratcliffe steve at parabola.demon.co.uk on Mon May 18 08:35:11 BST 2009

Hi

> I assumed that if i give an argument like oneway=yes {set oneway=no}  
> would only affect lines listed below the argument. This seems not to be  
> the case.

The rules are not really read from top to bottom on every element.  It is
more like they are applied all at once and the resuling type definition 
that comes first in the rule file(s) is chosen.
As a result all actions that are on rules that match are always run
and so it is as if all actions occur at the top of the file.

I don't see this behaviour changing for rules without
a type (like your "oneway=yes { set oneway=no }" below).
But for rules with a type, I agree it is a bug if the action is
run on something other than the first matched rule.

I'll think about this.

Thanks,
..Steve



More information about the mkgmap-dev mailing list