logo separator

[mkgmap-dev] Multiple relation names

From Geoff Sherlock geoffrey_sherlock at btinternet.com on Fri Mar 29 10:47:17 GMT 2013

OK, I managed to sort it out. Marko was right and the name combination 
should have been in the relations file.

Now I have the following set in relations:
type=route & name=* & (route=bicycle | route=hiking | route=mtb | 
route=walking | route=piste | route=horse | route=foot) {
    apply {
        set route=hiking;
        set route_name='$(route_name)/${name}'|'${name}'
    }
}

And the following in lines style:
(highway=track | highway=bridleway | highway=cycleway | highway=footway | 
highway=byway | highway=path) & route=hiking {name '${route_name}' | 
'${name}'}

And I am now seeing combined route names in Mapsource :-)

Thanks for all your help Marko and Thorsten.

Cheers, Geoff.

-----Original Message----- 
From: MarkoMäkelä
Sent: Tuesday, March 26, 2013 8:24 PM
To: Development list for mkgmap
Subject: Re: [mkgmap-dev] Multiple relation names

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
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev 



More information about the mkgmap-dev mailing list