Skip to content

Commit e5fbdd7

Browse files
Merge pull request #59 from nijel/patch-1
Fixed parsing of number of points for some shapes
2 parents 5d51227 + 3688257 commit e5fbdd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shapefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def __shape(self):
336336
if shapeType in (3,5,13,15,23,25,31):
337337
nParts = unpack("<i", f.read(4))[0]
338338
# Shape types with points
339-
if shapeType in (3,5,8,13,15,23,25,31):
339+
if shapeType in (3,5,8,13,15,18,23,25,28,31):
340340
nPoints = unpack("<i", f.read(4))[0]
341341
# Read parts
342342
if nParts:

0 commit comments

Comments
 (0)