logo separator

[mkgmap-dev] Problem with global index POI search

From Gerd Petermann gpetermann_muenchen at hotmail.com on Sun Nov 14 10:33:42 GMT 2021

Hi all,

my findings so far:
I can also reproduce the problem with the default style for a complete map of Italy (geofabrik extract from 2021-06-23) using options
java -jar mkgmap.jar  --preserve-element-order --bounds=bounds.zip  --max-jobs --code-page=1252 --lower-case --add-pois-to-areas -c template.args
Will try to find a much smaller set of files...

The uppercase.patch helps also in this case, so it is probably a good approach. Index size doesn't change with this patch, uppercase2.patch increases it.
Have to analyse memory peak usage, though.
@Ticker: I also tried various alternatives with Collator.setStrength() and similar but nothing fixed the search. I guess we really need a very small set of tiles with only a few strings to fully understand what's wrong.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com>
Gesendet: Samstag, 13. November 2021 11:16
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Problem with global index POI search

Hi,

this problem is possibly related to --lower-case.
Both attached mini-patches seem to fix the problem (but may introduce others).
No idea yet if this is the right way to tackle this problem.

Gerd


________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <GPetermann_muenchen at hotmail.com>
Gesendet: Samstag, 13. November 2021 09:49
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: [mkgmap-dev] Problem with global index POI search

Hi devs,

Enrico has contacted me in a PM about a rendering problem with his maps and while analysing that I found an obvious bug searching for e.g.
"Scuola Dell Infanzia Fondazione Pietro Caprettini" as name of the POI without filling any further fiels in MapSource.
When I start to type that name MapSource updates the list of candidates.
For scuo it shows the full name "Scuola Dell Infanzia Fondazione Pietro Caprettini" but when I select that entry with the mouse the search returns "no items found"
When I type scuol the name "Scuola Dell Infanzia Fondazione Pietro Caprettini" disappears from the candidates list as well as all other names starting with "Scuola dell".
My understanding is that we probably create wrong Mdr11 entries, but MdrCheck doesn't complain.

The tiles are at https://files.mkgmap.org.uk/detail/536
The command to reproduce the problem:
java -jar mkgmap.jar --code-page=1252 --index --gmapi  66923003.img  66923005.img 66923006.img

The tiles were created with the --lower-case option and a rather special style which sometimes adds leading / trailing blanks to names. It also produces lots of equally named POI.

Gerd
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list