[mkgmap-dev] comparison of relation tag and way tag
From Mike Baggaley mike at tvage.co.uk on Mon Mar 16 14:12:07 GMT 2015
Hi, I have the following lines in my relations file: type=route & (route~'.*foot.*' | route~'.*hiking.*') & network~'.*[nr]wn.*' & name~".*\(.*\)" { set name='${name|subst:"\(.*\)~>"}'} type=route & (route~'.*foot.*' | route~'.*hiking.*') & network~'.*[nr]wn.*' & name=* { apply_once { set hikingroute=yes; set rn='$(rn) & ${name}' | '${name}'; } } This is working, but if for example the way has two hiking relations with names "Shropshire Way (Route 1)" and "Shropshire Way (Route 2)", the first rule changes the names of both relations to "Shropshire Way", and the second rule sets the rn tag of the way to "Shropshire Way & Shropshire Way". I would like to check whether the rn tag on the way already contains the name of the relation (or is equal to if contains can't be done), so that I end up with rn as "Shropshire Way". Can anyone tell me how this can be achieved? Thanks, Mike
- Previous message: [mkgmap-dev] How to search for the Second City Name
- Next message: [mkgmap-dev] comparison of relation tag and way tag
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list