logo separator

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

From Felix Hartmann extremecarver at googlemail.com on Mon May 18 09:06:27 BST 2009

O.k so I was wrongly assuming that single rules, like rules with a type 
will be read from top to bottom. I would prefer that behaviour, because 
then it's much easier to apply rules to certain lines only. As I 
switched to generate my lines file via spreadsheet It's not too bad to 
implement for me (only prob that my lines file will then reach 5 digit 
lines, so I hope this will not cause problems instead).

As for the long runtime. It works for some items like highway=* without 
any problem. But running it for oneway and maxspeed does lenghten the 
compile process for me so much, that I tried it out on maps of 
supersmall countires like Liechtenstein to see if it would run at all 
because I though it the compile process had crashed. This is on windows? 
Maybe we again have a problem with the "*" behaviour. It's definitely 
buggy using "*" right now when compiling on Windows.

Steve Ratcliffe wrote:
> 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
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
>
>
> __________ Information from ESET Smart Security, version of virus signature database 4081 (20090517) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>   



__________ Information from ESET Smart Security, version of virus signature database 4081 (20090517) __________

The message was checked by ESET Smart Security.

http://www.eset.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090518/d6d2a450/attachment.html 


More information about the mkgmap-dev mailing list