logo separator

[mkgmap-dev] Bug Report: First rule matches in style files ... not quite!

From Thilo Hannemann thannema at gmx.de on Mon May 18 22:02:14 BST 2009

Hi Felix,

Am 18.05.2009 um 10:53 schrieb Felix Hartmann:

> Oh, sorry that my mails treated a subject that was already discussed.
> @Thilo - You are User:Radfahrer on the wiki, aren't you?

Yes, that's me.

> You wrote that you could patch this behaviour and I assume that you  
> do that for the maps of Germany that you offer on osm.ardnet . Could  
> you put that patch upstream into mgkmap or are you preprocessing  
> instead?

I'm preprocessing. But I don't like preprocessing, because it is time- 
consuming and should better be done in mkgmap. Unfortunately the code  
dealing with the rules is too complex for me to come up with a better  
idea easily. So what I will do in the future is to patch the  
*behaviour* of mkgmap with regard to the tags, e.g. removing the code  
that makes the road_speed dependent on the maxspeed tag. That's quite  
important for cycle maps, isn't it ;).

BTW, I was corrected in that thread: the first rule of the style file  
that fits gets applied. But that is only valid for way-generating  
rules. The code for the action rules is different and I don't really  
understand it. To me it seems that the action rules may get applied  
multiple times on each item - perhaps that is the reason why it is so  
slow for some rules?


More information about the mkgmap-dev mailing list