[mkgmap-dev] Possible bug in index creation
From Gerd Petermann GPetermann_muenchen at hotmail.com on Thu Jul 28 06:22:28 BST 2016
Hi Carlos, I tried your input file with the default style + your extra lines. I think I can reproduce the problem, but my device shows two entries for the cities "Caceres" and "Cáceres". When I select the first one I find almost no road, when I select the 2nd I seem to find every road. I looked at the input file and found e.g. http://www.openstreetmap.org/api/0.6/way/246419849 with <tag k="addr:city" v="CACERES"/> and <tag k="addr:street" v="Calle Sierpes"/> When I search for the road "Calle Sierpes", I find it in both cities, for Caceres I find the entry produced by the way above, for Cáceres I find other entries. I tried it with --latin1 and with --unicode option, both work. I think you get the correct result, it is just not what you want because the data is wrong. Do you agreee? BTW: For the given example and with my bounds file from 2015-11-13 I see mkgmap:admin_level8=Cáceres so you would not have the problem if you move your rules after the standard rule. Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <GPetermann_muenchen at hotmail.com> Gesendet: Montag, 25. Juli 2016 17:29:24 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Possible bug in index creation Hi Carlos, I noticed this problem before in other situations. My understanding is that city names are collected from different sources, sometimes we have additional info from a POI, sometimes we don't. If I got that right the index will have two entries when a city name is derived from e.g. the housenumber processing. I don't know why this is done, but their is special code for this, so it seems to be intended. I don't know why you see the problem only with the extra rules. Maybe a different spelling in e.g. one addr:city ? Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Carlos Dávila <cdavilam at orangecorreo.es> Gesendet: Montag, 25. Juli 2016 17:04:20 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Possible bug in index creation Any idea about this issue? El 19/07/16 a las 18:38, Carlos Dávila escribió: > In my style I have two extra lines to set mkgmap:city in Spain before > default one: > mkgmap:country=ESP & mkgmap:city!=* & is_in:city=* { set > mkgmap:city='${is_in:city}' } > mkgmap:country=ESP & mkgmap:city!=* & addr:city=* { set > mkgmap:city='${addr:city}' } > mkgmap:country=ESP & mkgmap:city!=* & mkgmap:admin_level8=* { set > mkgmap:city='${mkgmap:admin_level8}' } > > The presence of any of those lines causes that when you search for an > address in device and are promted for a city, some cities appear > twice. If you select one of them no street is found and if you select > the other one streets are found normally. > Test file: http://mapas.alternativaslibres.es/extremadura.o5m > Searching for an address in Cáceres city shows "Cáceres, provincia de > Cáceres" twice. _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160728/6e1dfac8/attachment-0001.html>
- Previous message: [mkgmap-dev] Possible bug in index creation
- Next message: [mkgmap-dev] Commit r3679: overview_levels_v3.patch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list