logo separator

[mkgmap-dev] Way.isClosed()

From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Dec 19 11:09:56 GMT 2013

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 at web.de
> To: mkgmap-dev at 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 at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20131219/c31c21cf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: is-closed-test.osm
Type: application/octet-stream
Size: 1786 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20131219/c31c21cf/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: is-closed-test.zip
Type: application/zip
Size: 609 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20131219/c31c21cf/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: is-closed-test-way1.osm
Type: application/octet-stream
Size: 757 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20131219/c31c21cf/attachment-0001.obj>


More information about the mkgmap-dev mailing list