
Hi Andrzej, I agree that it looks strange, but it works when you use apply like this: type=multipolygon & highway=* { apply { set area=yes; } } The reason is rather simple: The method MultiPolygonRelation.processElements() which creates the polylines is called before style evaluation, so your version adds the tag to the relation but that tag is only evaluated within the style rules. You may also ask for mkgmap:mp_created=true in the rules. I can't reproduce that the lines rules are applied, with my test file that contains the complete relation only the polygon rules are used. I assume your input file contains only a part of the relation? Gerd
Date: Fri, 8 May 2015 22:13:20 +0200 From: popej@poczta.onet.pl To: mkgmap-dev@lists.mkgmap.org.uk Subject: [mkgmap-dev] problem with highways as multipolygons
Hi All,
I have stuck at following problem:
There is relation 4764899:
type=multipolygon highway=footway Line 336969927 as inner Line 336969921 as outer
This is an area, probably it should include tag "area=yes", but actually it doesn't. Mkgmap creates a new polyline from multipolygon and polyline is processed according to rules in "lines" part of style.
I haven't found any method to safely remove this line from my map. I have tried to added following rule to "relations" file:
type=multipolygon & highway=* { set area=yes; }
but this doesn't work, new tags aren't added to created polyline. This looks for me like a bug.
Any ideas, how to deal with multipolygon?
-- Best regards, Andrzej _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev