<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 WanMil,<br><br>okay, I've created test files to verify what trunk (r2894) does.<br><br>Result:<br>way 1: true (n1.equals(n9) == true<br>way 2: true <br>way 3: true<br>way 4: false<br>way 5: true<br>way 6: (not evaluated, is thrown away as expected)<br><br>way 1 is passed to the polygon rules and is added as a shape<br>to the img file if the rules say so (as they do in my test style)<br><br>Gerd<br><br><div>> Date: Thu, 19 Dec 2013 10:54:21 +0100<br>> From: wmgcnfg@web.de<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Way.isClosed()<br>> <br>> My understanding is that is_closed() should return:<br>> <br>> > way 1 : n1,n2,n3...,n8,n9<br>> false: n1 != n9<br>> <br>> > way 2 : n1,n2,n3...,n8,n1<br>> true : n1 == n1<br>> <br>> > way 3: nx,n1,n2,n3,nx<br>> true: nx == nx<br>> <br>> > way 4: n1,n2,n9<br>> false: n1 != n9<br>> <br>> > way 5: n1,n2,n1<br>> true: n1 == n1<br>> > way 6: nx,n2,nx<br>> true: nx == nx (StyledConverter will throw it away because it has less <br>> than 2 points)<br>> <br>> <br>> WanMil<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>