<HTML><HEAD>
<STYLE><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></STYLE>
</HEAD>
<BODY class=hmmessage dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV><SPAN lang=en id=result_box><SPAN class=hps>Hi</SPAN> <SPAN 
class=hps>Gerd</SPAN><SPAN>,</SPAN><BR><SPAN class=hps>our proposal is</SPAN> 
<SPAN class=hps>to always use the</SPAN> <SPAN class=hps>label</SPAN> <SPAN 
class=hps>node</SPAN> <SPAN class=hps>when that</SPAN> <SPAN class=hps>is 
present</SPAN><SPAN>,</SPAN> <SPAN class=hps>to put the</SPAN> <SPAN 
class=hps>POI</SPAN> <SPAN class=hps>generated for</SPAN> <SPAN 
class=hps>admin_level</SPAN> <SPAN class=hps>= 10</SPAN> <SPAN 
class=hps>limit</SPAN> <SPAN class=hps>when there</SPAN><BR><BR><SPAN 
class=hps>I do not know</SPAN> <SPAN class=hps>in other countries,</SPAN> <SPAN 
class=hps>but in Brazil</SPAN> <SPAN class=hps>we have the</SPAN> <SPAN 
class=hps>administration</SPAN> <SPAN class=hps>suburb</SPAN> <SPAN 
class=hps>figure</SPAN> <SPAN class=hps>and usually</SPAN> <SPAN 
class=hps>that's where</SPAN> <SPAN class=hps>we put the</SPAN> <SPAN 
class=hps>label</SPAN> <SPAN class=hps>node.</SPAN><BR><BR><SPAN class=hps>I did 
not understand</SPAN> <SPAN class=hps>your</SPAN> <SPAN class=hps>concern</SPAN> 
<SPAN class=hps>that node</SPAN> <SPAN class=hps>can also be used</SPAN> <SPAN 
class=hps>for</SPAN> <SPAN class=hps>different</SPAN> <SPAN 
class=hps>relations</SPAN> <SPAN class=hps>because</SPAN> <SPAN class=hps>we are 
dealing</SPAN> <SPAN class=hps>solely</SPAN> <SPAN class=hps>the</SPAN> <SPAN 
class=hps>boundary</SPAN> <SPAN class=hps>relationship,</SPAN> <SPAN 
class=hps>however, even</SPAN> <SPAN class=hps>being</SPAN> <SPAN 
class=hps>employed by</SPAN> <SPAN class=hps>other relations</SPAN> <SPAN 
class=hps>do not see</SPAN> <SPAN class=hps>problems</SPAN> <SPAN 
class=hps>because it</SPAN> <SPAN class=hps>is defined by the</SPAN> <SPAN 
class=hps>tag</SPAN> <SPAN class=hps>name</SPAN> <SPAN class=hps>and is 
in</SPAN> <SPAN class=hps>its correct position</SPAN><SPAN>.</SPAN><BR><BR><SPAN 
class=hps>Particularly</SPAN> <SPAN class=hps>not identify</SPAN> <SPAN 
class=hps>employment status</SPAN> <SPAN class=hps>of that</SPAN> <SPAN 
class=hps>node when</SPAN> <SPAN class=hps>the tag</SPAN> <SPAN 
class=hps>name</SPAN> <SPAN class=hps>is missing</SPAN> <SPAN 
class=hps>and</SPAN> <SPAN class=hps>also</SPAN> <SPAN class=hps>can not</SPAN> 
<SPAN class=hps>identify</SPAN> <SPAN class=hps>situation in which</SPAN> <SPAN 
class=hps>an unnamed</SPAN> <SPAN class=hps>relationship can</SPAN> <SPAN 
class=hps>hire a</SPAN> <SPAN class=hps>node also</SPAN> <SPAN 
class=hps>unnamed</SPAN><SPAN>.</SPAN> <SPAN class=hps>I say this because</SPAN> 
<SPAN class=hps>we are referring to</SPAN> <SPAN class=hps>node</SPAN> <SPAN 
class=hps>similar to that</SPAN> <SPAN class=hps>name in any</SPAN> <SPAN 
class="hps alt-edited">relations that the</SPAN> <SPAN 
class=hps>employed.</SPAN></SPAN></DIV>
<DIV><SPAN lang=en><SPAN class=hps></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN lang=en><SPAN class=hps>Marcio</SPAN></SPAN> 
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'></DIV>
<DIV style="FONT: 10pt tahoma">
<DIV><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A 
title=gpetermann_muenchen@hotmail.com 
href="mailto:gpetermann_muenchen@hotmail.com">Gerd Petermann</A> </DIV>
<DIV><B>Sent:</B> Thursday, May 21, 2015 4:30 AM</DIV>
<DIV><B>To:</B> <A title=mkgmap-dev@lists.mkgmap.org.uk 
href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</A> 
</DIV>
<DIV><B>Subject:</B> [mkgmap-dev] [Patch v2] use role=label member to place 
POI</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>Hi all,<BR><BR>sorry, v1 was missing a check for null , attached is 
v2, the binary is here:<BR><CODE><A 
href="http://files.mkgmap.org.uk/download/269/mkgmap.jar" 
target=_blank>http://files.mkgmap.org.uk/download/269/mkgmap.jar</A><BR><BR></CODE>To 
ease testing I've added a log message with error level ,e.g. <BR><BR><FONT 
style="FONT-SIZE: 12pt" size=3>...&nbsp; <B>using label node as location</B> for 
POI for rel 334443 Goiás at -15.933471/-50.140561</FONT><FONT 
style="FONT-SIZE: 12pt" size=3><BR></FONT><BR>it will also complain loudly when 
the node is not used because the names don't match:<BR>... rel 
http://www.openstreetmap.org/relation/331515 ,<B>node with role label is ignored 
because it has a different name<BR><BR></B>Please suggest better text for the 
messages.<BR>These messages show were the patch changes something, it will be 
<BR>changed to debug/warn level before committing the patch.<BR><BR>If I got 
that right, Marcio and Anor propose to always use the label node<BR>to place the 
generated POI for admin_level=10 boundaries,&nbsp; <BR>but I see one potential 
problem here:<BR>The node might also be used by different relations, and in that 
case<BR>we will produce different POI at the same location.<BR>I think this is 
something we want to avoid.<BR><BR>One more point I am not sure about:<BR>The 
node in the mp-relation is only used when both the relation and the node have a 
name tag<BR>(or whatever the name-tag-list tells mkgmap to use as name), <BR>and 
when these are equal.<BR>Do you see a case where we should use the node even if 
one of the name tags is 
missing?<BR><BR>Gerd<BR></DIV></DIV></DIV></DIV></BODY></HTML>