<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Carlos,</p>
<p><br>
</p>
<p>I tried your input file with the default style + your extra lines. I think I can reproduce
<br>
</p>
<p>the problem, but my device shows two entries for the cities "Caceres" and "<span>Cáceres</span><span>".</span></p>
<p><span>When I select the first one I find almost no road, when I select the 2nd I seem to find every</span></p>
<p><span>road. I looked at the input file and found e.g. <br>
</span></p>
<p><span></span><a id="LPlnk611524" href="http://www.openstreetmap.org/api/0.6/way/246419849" class="OWAAutoLink">http://www.openstreetmap.org/api/0.6/way/246419849</a></p>
<p>with</p>
<p><span><tag k="addr:city" v="CACERES"/></span></p>
<p><span>and</span></p>
<p><span><span><tag k="addr:street" v="Calle Sierpes"/></span><br>
</span></p>
<p>When I search for the road "<span><span>Calle Sierpes</span></span>", I find it in both cities,</p>
<p>for  <span>Caceres</span> I find the entry produced by the way above,</p>
<p>for <span>Cáceres</span><span></span> I find other entries.<br>
</p>
<p>I tried it with --latin1 and with --<span>unicode</span> option, both work.<br>
</p>
<p><br>
</p>
<p>I think you get the correct result, it is just not what you want</p>
<p>because the data is wrong. Do you agreee?<br>
</p>
<p><br>
</p>
<p>BTW: For the given example and with my bounds file from <span>2015-11-13</span><br>
</p>
<p>I see  <span>mkgmap:admin_level8=Cáceres</span><br>
</p>
<p>so you would not have the problem if you move your rules after the standard</p>
<p>rule.<br>
</p>
<p><br>
</p>
<p>Gerd<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <GPetermann_muenchen@hotmail.com><br>
<b>Gesendet:</b> Montag, 25. Juli 2016 17:29:24<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Possible bug in index creation</font>
<div> </div>
</div>
<div>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Carlos,</p>
<p><br>
</p>
<p>I noticed this problem before in other situations. My understanding</p>
<p>is that city names are collected from different sources, sometimes we</p>
<p>have additional info from a POI, sometimes we don't. If I got that right <br>
</p>
<p>the index will have two entries when a city name is derived from e.g. the</p>
<p>housenumber processing. I don't know why this is done, but their is special</p>
<p>code for this, so it seems to be intended.</p>
<p>I don't know why you see the problem only with the extra rules. Maybe <br>
</p>
<p>a different spelling in e.g. one addr:city ?<br>
</p>
<p><br>
</p>
<p>Gerd<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Carlos Dávila <cdavilam@orangecorreo.es><br>
<b>Gesendet:</b> Montag, 25. Juli 2016 17:04:20<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Possible bug in index creation</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Any idea about this issue?<br>
<br>
<br>
El 19/07/16 a las 18:38, Carlos Dávila escribió:<br>
> In my style I have two extra lines to set mkgmap:city in Spain before <br>
> default one:<br>
> mkgmap:country=ESP & mkgmap:city!=* & is_in:city=* { set <br>
> mkgmap:city='${is_in:city}' }<br>
> mkgmap:country=ESP & mkgmap:city!=* & addr:city=* { set <br>
> mkgmap:city='${addr:city}' }<br>
> mkgmap:country=ESP & mkgmap:city!=* & mkgmap:admin_level8=* { set <br>
> mkgmap:city='${mkgmap:admin_level8}' }<br>
><br>
> The presence of any of those lines causes that when you search for an <br>
> address in device and are promted for a city, some cities appear <br>
> twice. If you select one of them no street is found and if you select <br>
> the other one streets are found normally.<br>
> Test file: <a href="http://mapas.alternativaslibres.es/extremadura.o5m">http://mapas.alternativaslibres.es/extremadura.o5m</a>
<br>
> Searching for an address in Cáceres city shows "Cáceres, provincia de <br>
> Cáceres" twice.<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
mkgmap-dev@lists.mkgmap.org.uk<br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>
</span></font></div>
</body>
</html>