logo separator

[mkgmap-dev] [PATCH v1] No address information on some POIs

From WanMil wmgcnfg at web.de on Fri Aug 31 21:34:52 BST 2012

I've found a bug that results in some POIs (mainly place POIs) that have 
no address information (so only the default country and default region). 
The POIs are automatically created by the add-pois-to-areas parameter 
and originate from multipolygons.

This happens if mkgmap is started at least with the parameters
  --add-pois-to-areas --index --location-autofill=bounds

It is important that the location-autofill parameter contains the value 
bounds only. In this case the add-pois-to-areas takes the middle points 
of all multipolygons and create a new POI with tags copied from the mp. 
But the mp has no address information because the LocationHook ignores 
all relations and multipolygons.

The patch fixes that in the LocationHook. It now adds the 
mkgmap:admin_levelN tags to all mp. It uses the calculated middle point 
of the mp to query for the bounds information.

WanMil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp_boundstags__v1.patch
Type: text/x-patch
Size: 1389 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20120831/ef5b1c58/attachment.bin 


More information about the mkgmap-dev mailing list