logo separator

[mkgmap-dev] Multiple relation names

From Marko Mäkelä marko.makela at iki.fi on Tue Mar 26 20:24:40 GMT 2013

Hi Geoff,

>Yes I understand the concept now, I just can't get it to work! I have
>simplified the lines file now, but no change:
>
>type=route & name=* {
>    apply {
>        set route_display_name='$(route_display_name)/${name}'|'${name}';
>    }
>}

The above should be in the relations file.

>(highway=track | highway=bridleway | highway=cycleway | highway=footway) &
>route_display_name=* {set name='${route_display_name}'}

This one should be in the lines file, before any matching highway=* 
rules.

>If I replace route_display_name with just name, and remove the line 
>that sets the way name; it does not change the way name at all???

Can you try with a small map extract that you download with JOSM and 
save as *.osm file? And can you try this with a minimal style, 
containing as few rules as possible?

Could it depend on the order in which the relations and ways are written 
in the *.osm file? If it does, that would be a bug in mkgmap. And the 
bug might exist only in *.osm not in *.osm.pbf or vice versa. So, you 
might want to try converting from one format to another with Osmosis or 
some other tool.

If you are modifying the default style, you will have to run 'ant dist' 
to put the modified style to the mkgmap.jar. (Sorry, this may be stupid 
advice, but you did not write which exact steps you followed, so I have 
to extrapolate and make assumptions.)

Best regards,

	Marko


More information about the mkgmap-dev mailing list