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