tarsh / pyshp

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

Error Reading PointZ type records #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PointZ records are not read in properly. To fix this line 188 in shapefile.py 
should read

185     if shapeType == 11:
186         record.z = unpack("<d", f.read(8))
187     # Read a single M value
188     if shapeType == 11 or shapeType == 21:
189         record.m = unpack("<d", f.read(8))

This is documented on page 15 of the ESRI white paper.

http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf

Original issue reported on code.google.com by ledere...@gmail.com on 18 Apr 2011 at 6:42

GoogleCodeExporter commented 9 years ago
Fixed in r28

Original comment by ledere...@gmail.com on 18 Apr 2011 at 10:11