logo separator

[mkgmap-dev] [PATCH] --ignore-builtin-relations

From Marko Mäkelä marko.makela at iki.fi on Fri Aug 26 09:33:22 BST 2011

On Thu, Aug 25, 2011 at 11:43:06PM +0200, WanMil wrote:
>I think I am wrong?!?
>You want to have some relation processing in the relations style file, 
>correct?

Right. I would like to disable the built-in (non-style-file) processing 
of relations when creating auxiliary map layers, meant to be enabled or 
disabled on the device as needed. I have defined a number of routes-* 
styles for highlighting various route relations. Typically, you would 
not want to display all types of routes at the same time. For example, 
it is not likely to be useful to display bus and bicycle routes at the 
same time.

I think that the turn restrictions only need to be processed for the 
layer(s) that are used for routing. Or, in other words, the absence of 
--route or --net should imply --ignore-turn-restrictions.

>But what do you think of the idea to check if there is any polygon 
>rule? Mmh, this is also not a 100% idea. The mp processing creates ways 
>tagged with the mp tags so that they can be processed by the ways file.  
>Example: you want to draw the borders of boundaries. So there will be 
>no polygon rule if someone wants to create a border layer but the 
>multipolygon processing is still required.

Right, I was thinking roughly along the same lines.

I am not sure, but would it be possible to skip the multipolygon 
processing of type=boundary relations when you only want to draw 
boundary lines (no polygons)?

>Ok, so I have no more objections against committing. Could you please 
>add some more description what the option is for? And maybe a warning 
>hint and/or an example when it is a good or a bad choice to use it?

OK, I will extend the help file description if we go along this route.

In other news, there are more and more boundaries being defined for 
Finland. I think I will soon have to switch to --index and generating 
the map with MapSource. Currently, I am using mkgmap r2001, so that I 
get the half-broken way search with reasonable city names. After r2008 
(the branches/location merge) without --index, all streets seem to be 
assigned to one town (Nurmijärvi), even though the boundaries are valid.

	Marko



More information about the mkgmap-dev mailing list