<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Paco,<br><br>thanks for the details, that helped a lot.<br><br>I found out that I have to patch RelationStyleHook, not StyledConverter.<br>patch v1 works, but the apply rules are processed before,<br>so it has not much effect ;-)<br><br>Attached is a version 2 of the patch, a compiled binary based on r3138 is here:<br><code>http://files.mkgmap.org.uk/download/195/mkgmap.jar</code><br><br>Gerd<br><br><div>> Date: Sat, 29 Mar 2014 21:54:29 +0100<br>> From: paco.tyson@free.fr<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Name-tag-list parameter not used in relations        processing<br>> <br>> Selon GerdP <gpetermann_muenchen@hotmail.com>:<br>> <br>> > Hi Paco,<br>> ><br>> > you can try it, I've uploaded the binary :<br>> > http://files.mkgmap.org.uk/download/192/mkgmap.jar<br>> ><br>> > Gerd<br>> <br>> Hi Gerd,<br>> I'm afraid the patch isn't effective.<br>> <br>> For your information, the relations file contains :<br>> <br>> network=icn & state!=proposed {<br>>         apply {<br>>                 set icn_from_relation=yes;<br>>                 set icn_name='${name}';<br>>                 set icn_ref='${ref}';<br>>         };<br>>         echotags "Relation ICN";<br>> }<br>> <br>> and the corresponding lines file :<br>> highway=* & icn_from_relation=yes {name '${icn_ref}<br>> (${icn_name|not-equal:icn_ref})' | '${icn_ref}'; echotags "ICN way"; } [0x00<br>> resolution 15-15 continue]<br>> <br>> <br>> <br>> Mkgmap r3116, without name-tag-list parameter set :<br>> [java] 2345035 - [route=bicycle,type=route,name=EuroVelo 3 - part<br>> France,ref=EV3,network=icn] Relation ICN<br>> [java] 254539829 - [motorcar=yes,mkgmap:label:1=EV3 (EuroVelo 3 - part<br>> France),mkgmap:admin_level2=FRA,mkgmap:admin_level3=France<br>> métropolitaine,mkgmap:admin_level4=Picardie,icn_from_relation=yes,mkgmap:admin_level6=Oise,icn_ref=EV3,mkgmap:admin_level8=Pontpoint,mkgmap:admin_level7=Senlis,name=Trans'Oise,surface=paved,highway=cycleway,foot=designated,mkgmap:street=Trans'Oise,mkgmap:country=FRA,mkgmap:city=Pontpoint,icn_name=EuroVelo<br>> 3 - part<br>> France,bicycleroute=yes,source=GPS,mkgmap:region=Picardie,toll=no,tollroad=no,bicycle=yes]<br>> ICN way<br>> <br>> <br>> <br>> Mkgmap r3116, name-tag-list parameter set to name:fr,name,int_name :<br>> [java] 2345035 - [route=bicycle,type=route,name=EuroVelo 3 - part<br>> France,name:fr=La route des pèlerins - portion France,ref=EV3,network=icn]<br>> Relation ICN<br>> [java] 254539829 - [motorcar=yes,mkgmap:label:1=EV3 (EuroVelo 3 - part<br>> France),mkgmap:admin_level2=FRA,mkgmap:admin_level3=France<br>> métropolitaine,mkgmap:admin_level4=Picardie,icn_from_relation=yes,mkgmap:admin_level6=Oise,icn_ref=EV3,mkgmap:admin_level8=Pontpoint,mkgmap:admin_level7=Senlis,name=Trans'Oise,surface=paved,highway=cycleway,foot=designated,mkgmap:street=Trans'Oise,mkgmap:country=FRA,mkgmap:city=Pontpoint,icn_name=EuroVelo<br>> 3 - part<br>> France,bicycleroute=yes,source=GPS,mkgmap:region=Picardie,toll=no,tollroad=no,bicycle=yes]<br>> ICN way<br>> <br>> <br>> <br>> Mkgmap r3118, with jar file overwritten with your patched jar, without<br>> name-tag-list-parameter:<br>> [java] 2345035 - [route=bicycle,type=route,name=EuroVelo 3 - part<br>> France,ref=EV3,network=icn] Relation ICN<br>> [java] 254539829 - [motorcar=yes,mkgmap:label:1=EV3 (EuroVelo 3 - part<br>> France),mkgmap:admin_level2=FRA,mkgmap:admin_level3=France<br>> métropolitaine,mkgmap:admin_level4=Picardie,icn_from_relation=yes,mkgmap:admin_level6=Oise,icn_ref=EV3,mkgmap:admin_level8=Pontpoint,mkgmap:admin_level7=Senlis,name=Trans'Oise,surface=paved,highway=cycleway,foot=designated,mkgmap:street=Trans'Oise,mkgmap:country=FRA,mkgmap:city=Pontpoint,icn_name=EuroVelo<br>> 3 - part<br>> France,bicycleroute=yes,source=GPS,mkgmap:region=Picardie,toll=no,tollroad=no,bicycle=yes]<br>> ICN way<br>> <br>> <br>> Mkgmap r3118, with jar file overwritten with your patched jar, name-tag-list<br>> parameter set to name:fr,name,int_name :<br>> [java] 2345035 - [route=bicycle,type=route,name=EuroVelo 3 - part<br>> France,name:fr=La route des pèlerins - portion France,ref=EV3,network=icn]<br>> Relation ICN<br>> [java] 254539829 - [motorcar=yes,mkgmap:label:1=EV3 (EuroVelo 3 - part<br>> France),mkgmap:admin_level2=FRA,mkgmap:admin_level3=France<br>> métropolitaine,mkgmap:admin_level4=Picardie,icn_from_relation=yes,mkgmap:admin_level6=Oise,icn_ref=EV3,mkgmap:admin_level8=Pontpoint,mkgmap:admin_level7=Senlis,name=Trans'Oise,surface=paved,highway=cycleway,foot=designated,mkgmap:street=Trans'Oise,mkgmap:country=FRA,mkgmap:city=Pontpoint,icn_name=EuroVelo<br>> 3 - part<br>> France,bicycleroute=yes,source=GPS,mkgmap:region=Picardie,toll=no,tollroad=no,bicycle=yes]<br>> ICN way<br>> <br>> <br>> What I want is to get for way 254539829 the tag "mkgmap:label:1=La route des<br>> pèlerins - portion France". So I expect the relation to automatically get the<br>> tag "name=La route des pèlerins - portion France".<br>> Or did I misunderstood the way this parameter works ?<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>