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

2010-11-17 Thread maning sambale
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:

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

2010-11-17 Thread Chris66
Am 17.11.2010 13:34, schrieb Greg Troxel: So I think that the relation inherits tags from the outer way, and thus both the multipolygon and the way get a poi point generated. I don't think this is a mkgmap bug. Another possible reason: The MP Code splits the MP to several normal polygons

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

2010-11-17 Thread maning sambale
AFAIK, the correct way of tagging is: way 1 - amenity=townhall way 2 - no tag relation type=multipolygon way 1 = outer way 2 = inner I'll check other data to verify. On Wed, Nov 17, 2010 at 8:34 PM, Greg Troxel g...@ir.bbn.com wrote: maning sambale emmanuel.samb...@gmail.com writes: This

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

2010-11-17 Thread maning sambale
Can anyone confirm this? (I don't read code sorry) On Wed, Nov 17, 2010 at 8:44 PM, Chris66 chris66...@gmx.de wrote: Am 17.11.2010 13:34, schrieb Greg Troxel: So I think that the relation inherits tags from the outer way, and thus both the multipolygon and the way get a poi point generated.  

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

2010-11-17 Thread Marko Mäkelä
On Wed, Nov 17, 2010 at 09:37:17PM +0800, maning sambale wrote: Can anyone confirm this? (I don't read code sorry) If moving all tags from the role=outer way to the multipolygon relation fixes the problem, then Greg Troxel is right. If not, then Chris is right. I may have observed similar

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

2010-11-17 Thread Torsten Leistikow
maning sambale schrieb am 17.11.2010 14:36: AFAIK, the correct way of tagging is: way 1 - amenity=townhall way 2 - no tag relation type=multipolygon way 1 = outer way 2 = inner I'll check other data to verify. This one of the possible solutions. Also ok would be way 1 - no tag way

[mkgmap-dev] ! not working -- problem with conditions in style-file.

2010-11-17 Thread Felix Hartmann
There is a problem in the style handling. ! is not working. Assume I would like to reverse the statement layer0 into meaning layer 0 does not exist. Currently I could write layer!=-1 layer!=-2 and so on. But that sums up to quite a lot of text. Essentially I would like to have the following

Re: [mkgmap-dev] ! not working -- problem with conditions in style-file.

2010-11-17 Thread Marko Mäkelä
On Wed, Nov 17, 2010 at 07:43:32PM +0100, Felix Hartmann wrote: There is a problem in the style handling. ! is not working. How should it work? I haven't seen such an operator in any language. The SGML start-of-comment ! comes closest. Is there a reason why you cannot use =, or is that not

Re: [mkgmap-dev] ! not working -- problem with conditions in style-file.

2010-11-17 Thread aighes
Hello instead of ! you could use = or =. I don't know if there is a difference. For example: ( tracktype=5 | tracktypeadded=yes ) -- View this message in context: http://gis.638310.n2.nabble.com/not-working-problem-with-conditions-in-style-file-tp5748938p5749098.html Sent from the Mkgmap

Re: [mkgmap-dev] ! not working -- problem with conditions in style-file.

2010-11-17 Thread Torsten Leistikow
aighes schrieb am 17.11.2010 20:21: instead of ! you could use = or =. I don't know if there is a difference. For example: ( tracktype=5 | tracktypeadded=yes ) I think he wants to have (tracktype!=* | tracktype5) The difference is, when there is no tracktype defined at all. Gruss Torsten

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

2010-11-17 Thread Chris66
Another possible reason: The MP Code splits the MP to several normal polygons (without holes), each getting a POI. But this is just a guess. Can anyone confirm this? (I don't read code sorry) Hi, I created a test file with one park and one golf_course. Number of POIs seems to match the

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

2010-11-17 Thread Chris66
Number of POIs seems to match the number of holes: http://up.picr.de/5665803.jpg Result is the same if tagging the relation and not the outer way. Chris ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk

Re: [mkgmap-dev] ! not working -- problem with conditions in style-file.

2010-11-17 Thread Felix Hartmann
On 17.11.2010 20:32, Torsten Leistikow wrote: aighes schrieb am 17.11.2010 20:21: instead of ! you could use = or=. I don't know if there is a difference. For example: ( tracktype=5 | tracktypeadded=yes ) I think he wants to have (tracktype!=* | tracktype5) The difference is, when

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

2010-11-17 Thread Greg Troxel
Marko Mäkelä marko.mak...@iki.fi writes: On Wed, Nov 17, 2010 at 09:37:17PM +0800, maning sambale wrote: Can anyone confirm this? (I don't read code sorry) If moving all tags from the role=outer way to the multipolygon relation fixes the problem, then Greg Troxel is right. If not, then

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

2010-11-17 Thread maning sambale
As far as I remember it, It should to be tagged in the outer way. But the wiki says otherwise, http://wiki.openstreetmap.org/wiki/Multipolygon#Usage On Thu, Nov 18, 2010 at 9:03 AM, Greg Troxel g...@ir.bbn.com wrote: Marko Mäkelä marko.mak...@iki.fi writes: On Wed, Nov 17, 2010 at 09:37:17PM