logo separator

[mkgmap-dev] 2 pois for a single polygon/multipolygon

From WanMil wmgcnfg at web.de on Sat Nov 20 22:34:37 GMT 2010

I am sorry. The promised patch is more complicated than I thought. The 
POI generation source code has no access to original tags because it is 
placed after the transformation from an OSM object to a garmin object.

It will take some time to change this. I won't do this before I finished 
the revision of the sea generation code.

WanMil

> The mp is tagged wrong.
> http://wiki.openstreetmap.org/wiki/Multipolygon#Tagging points out that
> the tags are taken from the relation if it has at least one tag beside
> type=multipolygon. mkgmap follows this rule strictly since r1711.
>
> The relation is tagged with name=Manila City Hall so the resulting
> polygons of the multipolygon are tagged only with name=Manila City Hall.
>
> Please follow the single and easy rule: Put all tags of the multipolygon
> to the relation and not to the outer ways.
>
> The bug that multiple POIs are created multipolygons could be easily
> fixed. I wasn't aware of this problem. I will post a patch within the
> next days.
>
> Have fun!
> WanMil
>
>
>> This way is tagged as a amenity=townhall and a multipolygon relation:
>> http://www.openstreetmap.org/browse/way/24159829
>> http://www.openstreetmap.org/browse/relation/452620
>>
>> In my style:
>> polygons:
>> building=* | man_made=* | amenity=* | tourism=* [0x13 resolution 24]
>>
>> and in the points:
>> amenity=townhall [0x3003 resolution 21]
>> building=* [0x6402 resolution 24]
>>
>> I have the add-pois-areas switch enabled
>>
>> This resulted to two POI icons (the little PH flag) in garmin
>> http://farm2.static.flickr.com/1290/5184379090_bbeeeaffc8_b.jpg
>
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>




More information about the mkgmap-dev mailing list