<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 all,<br><br>I got some screenshots from Anor.Carlos that show this relation:<br><a href="http://www.openstreetmap.org/relation/333659" target="_blank">http://www.openstreetmap.org/relation/333659</a><br>which has name=Barra do Garças and place=town. <br><br>If I got that right, the --add-pois-to-area option<br>creates a node with the tag place=town<br>for it, although the relation also has a member <br><a href="http://www.openstreetmap.org/node/415522222" target="_blank">http://www.openstreetmap.org/node/415522222</a><br>with place=town and name=Barra do Garças<br><br>As a result, the map contains two POI with very different locations,<br>one has the additional tag mkgmap:area2poi=true,<br>but that doesn't help in the style rules to filter duplicate<br>entry because one doesn't know about the node <br>415522222. <br><br>I am not sure if the OSM data is okay, but I think we probably have <br>more sure cases. Did anybody try to solve that already?<br>Do you see a general rule which might be implemented <br>as filter before or after style processing?<br><br>My 1st approach would be this:<br>After style processing, keep a map that relates the Garmin POI with <br>the original node, one map for each type. If two or more POI have the same <br>type and label(s), remove those where the OSM element has the <br>mkgmap:area2poi=true tag (maybe also the ones with <br>mkgmap:line2poi=true.<br><br>Gerd<br><br><div>> From: thundercel@gpsinfo.com.br<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Date: Sun, 3 May 2015 17:10:57 -0300<br>> Subject: Re: [mkgmap-dev] Fw: Help<br>> <br>> Hi Gerd.<br>> <br>> thanks for your quick response and congratulations to the whole team for the <br>> excellent work developed.<br>> Yes, it's POI generated by the add-as-to-area option and only when the <br>> boundary relationship. For the other areas we are not having problem.<br>> It is a filter we need and we do not know how to do and where to apply.<br>> A filter that only remove the label place when inserted into the boundary <br>> relationship. The filter would not need to collect all the POI. Would <br>> collect only those generated by the boundary area due to add-to-area option.<br>> We have a rule for admin_centre and these were included in the relationship, <br>> but unfortunately many admin_centre were excluded relationships.<br>> Could you help us?<br>> [] s<br>> Marcio<br>> <br>> -----Mensagem Original----- <br>> From: GerdP<br>> <br>> Hi Marcio,<br>> <br>> okay, so this is about the POI generated by the add-pois-to-area option<br>> and other OSM nodes with similar tags and the problem is that you<br>> cannot know if both exist or only one?<br>> Well, I think there is no trick to solve that problem,<br>> but it should be easy to implement a filter.<br>> Something like this:<br>> Collect all POI with the same type, and when two have the same<br>> label(s), select the one that has a special tag, or just use the first.<br>> I assume we have to limit this filter to special POI types.<br>> Does that sound like a solution?<br>> <br>> Gerd<br>> <br>> <br>> <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>