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