<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 Mike,<br><br>thanks for the patch.<br>I think the docu should mention that --max-same-poi-distance expects a <br>value in metres.<br>Looking at the code I see one small -maybe unwanted - side effect:<br>If --max-same-poi-distance &gt; 0 only duplicated named POI are removed.<br>When I coded the original code I thought that it is ok to remove<br>e.g. pillars when they appear at the same map point.<br><br>For those that like to test: I've uploaded a binary here:<br><code><a href="http://files.mkgmap.org.uk/download/276/mkgmap.jar" target="_blank">http://files.mkgmap.org.uk/download/276/mkgmap.jar</a><br><br></code><code><br>Gerd<br></code><br><div><hr id="stopSpelling">From: mike@tvage.co.uk<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Date: Wed, 19 Aug 2015 23:14:53 +0100<br>Subject: [mkgmap-dev] patch for omitting nearby POIs with the same name and        type<br><br><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:11.0pt;
font-family:"Calibri",sans-serif;
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:#0563C1;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:#954F72;
text-decoration:underline;
}

.ExternalClass span.ecxEmailStyle17 {
font-family:"Calibri",sans-serif;
color:windowtext;
}

.ExternalClass .ecxMsoChpDefault {
}

.ExternalClass div.ecxWordSection1 {
}

--></style><div class="ecxWordSection1"><p class="ecxMsoNormal">Hi, please find attached a patch that adds two new options: &nbsp;--max-same-poi-distance=distance and --include-nearby-poi-types=type[,type...]. These options are used to determine whether nearby POIS are duplicates and should be omitted from the map, extending the existing check for duplicates at the exact same location. They help to reduce the problems cause by OSM data frequently having an area such as a building tagged with the same information as a point or where multiple areas are given the same name – this is most problematic if the --add-pois-to-areas option is used. It may be valid for some named POI types to be found close together hence the option to omit certain types of POI from the nearby processing. I have the distance set to 50 with bus stops and cave entrances always included and this seems to work well for me (I don’t use the default style). If --max-same-poi-distance is omitted or set to 0, the check works as previously. </p><p class="ecxMsoNormal">&nbsp;</p><p class="ecxMsoNormal">Please try and if OK, commit.</p><p class="ecxMsoNormal">&nbsp;</p><p class="ecxMsoNormal">Thanks,</p><p class="ecxMsoNormal">Mike</p></div><br>_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</div>                                               </div></body>
</html>