logo separator

[mkgmap-dev] [PATCH v1] Reimplementation of add-pois-to-areas option

From WanMil wmgcnfg at web.de on Mon Oct 3 21:09:28 BST 2011

The patch realizes the reimplementation of the add-pois-to-areas option 
as discussed in thread 
http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2011q3/012391.html

Some notes:
* Each POI created by the new Area2POIHook is tagged with 
mkgmap:area2poi=true
* For each multipolygon one POI is created at the center of the largest 
polygon (largest = biggest covered area; size of inner polygons is 
subtracted). This means that the POI may be located outside the 
multipolygon area.
* The old implementation contained some additional rules which have not 
been implemented in the new implementation. I wonder if they are really 
required:
   1. Skip road name POIs
      =>  Probably you don't have a rule for that in your points file
   2. Skip cities without name
      => I don't know. Maybe that check is relevant.
   3. Skip areas which contains a POI with the same name
      => If you follow the rule "don't tag for renders" there should be 
an area OR a POI but not both.

The patch is tested a little but if you are interested in you can help 
me by sending your opinion if it's a good replacement for the old 
implementation or what can be improved.

Have fun!
WanMil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: area2poi_v1.patch
Type: text/x-patch
Size: 13662 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20111003/20d1f30e/attachment.bin 


More information about the mkgmap-dev mailing list