zhikrullah / pyshp

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

Only every 5th shape is valid. #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Unzip attached file
2. Run:

from shapefile import Reader)
rdr = Reader('dryclean_sp_vw')
for s in rdr.shapes():
   print s.shapeType, s.points

What is the expected output? What do you see instead?

Expect to see valid shapeType and a single point on each output line.

Actually see:

21          [[526856.2550000001, 426634.1260000001]]
1092619666  []
50331648    []
-2104533974 []
1092198249  []
21          [[524895.9480000002, 428961.89000000013]]
1092603877  []
100663296   []
498216209   []
1092281351  []

What version of the product are you using? On what operating system?

V 1.1.4 on Windows 7 w/ python 2.7.

Original issue reported on code.google.com by larrylus...@gmail.com on 27 Apr 2012 at 8:13

Attachments:

GoogleCodeExporter commented 8 years ago
+1, I am having a similar problem with a polyline shapefile

Original comment by mgilli...@gmail.com on 17 Jul 2012 at 8:05

GoogleCodeExporter commented 8 years ago

Original comment by jlawh...@geospatialpython.com on 2 May 2013 at 5:02