tarsh / pyshp

Automatically exported from code.google.com/p/pyshp
MIT License
0 stars 0 forks source link

Polygon examples should close OR shapefile library should automatically close polygon for you #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a polygon that is not closed.  
'e.poly(parts=[[[5.1,5],[9.9,5],[9.9,1],[7.5,3],[5.1,1]]])'

What is the expected output? What do you see instead?
A complete shapefile.  IMO, the best solution would be for the polygon creation 
to test if last point is coincident with the first, and if it is do nothing, if 
not append the first point to close the polygon.  Another solution would be to 
make sure the examples all close.

What version of the product are you using? On what operating system?
1.1.4 from PyPi.  Linux.

Please provide any additional information below.
The overall appearance in ArcGIS looks correct.  There is a line closing the 
polygon.  The problem though is that the selection of polygons is strange.

By the way - Thanks for a great bit of software!

Original issue reported on code.google.com by t...@cerazone.net on 22 Feb 2012 at 4:10

GoogleCodeExporter commented 9 years ago

Original comment by jlawh...@gmail.com on 28 Feb 2012 at 5:22

GoogleCodeExporter commented 9 years ago
Fixed in version 1.1.7. The Writer.poly() method automatically closes open 
polygons.

Original comment by geospati...@gmail.com on 23 Jun 2013 at 7:44