logo separator

[mkgmap-dev] element type definition as variable

From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Nov 27 11:15:10 GMT 2017

Hi Enrico,

if you add the echotags statements as I have proposed you'll find that your style
doesn't apply the first rule in lines to https://www.openstreetmap.org/way/304455618
because the rules in relations do not match.
Attached is the modified lines file and the output using the command
java -jar mkgmap.jar --route --style-file=mystyles\test test.osm 2> log.txt


Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von demon.box <e.rossini73 at alice.it>
Gesendet: Montag, 27. November 2017 11:29:16
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] element type definition as variable

Hi Gerd, thanks very much for your attention and patience... ;-)

I'm testing this 3 ways:

Via Ermanno Margheriti

Via Maniva

Via Trento

This is my only simply style for this test:

highway=* & name=* & (route_name=* | ref=*) {name '${name}'} [0x09
road_class=0 road_speed=1 resolution 24 continue]

highway=* &
        route_type ~ '.*hiking.*'
        '${route_ref1|highway-symbol:oval} ${route_name}' |
        '${route_ref1|highway-symbol:oval}' |

(highway=secondary | highway=secondary_link) & surface=asphalt
        '${ref|highway-symbol:hbox} ${route_name}' |
        [0x04 road_class=2 road_speed=2 resolution 22 continue]

name=* {name '${name}'}

type=route & (route=hiking) {
        apply {
                set route_type='$(route_type), ${route}' | '${route}';
                set route_ref1='$(route_ref1), ${ref}' | '${ref}';
                set route_name='$(route_name) | ${name}' | '${name} (${alt_name})' |

and this is the result with --preserve-element-order option:

Via Ermanno Margheriti

Via Maniva

Via Trento

and this is the result without --preserve-element-order option:

Via Ermanno Margheriti

Via Maniva

Via Trento

Finally I mean... how can I display the name always for first?



Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lines
Type: application/octet-stream
Size: 659 bytes
Desc: lines
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20171127/9bb1ea17/attachment-0001.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log.txt
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20171127/9bb1ea17/attachment-0001.txt>

More information about the mkgmap-dev mailing list