Skip to content
Prev 1723 / 29559 Next

ring not closed - readShapePoly - read.shape - maptools

On Fri, 9 Feb 2007 Olsen.Tony at epamail.epa.gov wrote:

            
Thanks, the issue here is that the first and final row of the 
shape$verts[from[i]:to[i],] slice are not equal, so Polygon() throws an 
error, because this isn't a ring. Polygon() cannot take a closure 
argument, but the function in spsurvey or that in maptools could. It's 
certainly worth trying, a further alternative is the function in the 
shapefiles package that just uses connections.

Roger