You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Mapsforge POI files of version 3 and 4 #1281
Is your feature request related to a problem? Please describe.
OpenAndroMaps now publishes its POI files only as Mapsforge POI version 3 by default (and version 4 in a separate folder); version 2 is left in a "mapsforge_old" folder. QMapShack refuses both newer versions: "POI file '…' is POI version 3. Only version 2 is supported!". Users have to find the old files or convert them with a script (see the FAQ).
Describe the solution you'd like
QMapShack reads Mapsforge POI files of version 2, 3 and 4.
Version 3 (writer 0.27) replaced the R-tree poi_index by a plain table (id, lat, lon) with one index per column, and adds a normalized_name tag.
Version 4 (writer 0.30) has the R-tree again, plus a full-text table and an index on poi_category_map.category.
poi_data, poi_categories and metadata are the same in all three.
Versions 2 and 4 can use the existing R-tree query. For version 3 the query has to be organised differently to stay fast without an R-tree.
Describe alternatives you've considered
Converting v3 files to v2 with a script (FAQ): works, but every user has to do it for every update.
A slow generic v3 reader (an earlier attempt was rejected because of the performance hit).
Building an own R-tree file next to the POI file once: possible fallback if v3 reading is still too slow.
Give a reason why someone else should spend time on that request
OpenAndroMaps is the main source of offline POIs for QMapShack users, and its default downloads no longer load. I have a working implementation and will open a pull request.
Additional context
With OpenAndroMaps' Belgium file, the view around Durbuy and the eleven "Transport Car" categories checked, loading takes about 0.4 s with version 3 against 0.2–0.3 s with versions 2 and 4 (loading v3 the same way as v2 would take about 5.5 s).
Activity