Skip to content

Commit 3688257

Browse files
authored
Fixed parsing of number of points for some shapes
The 18 and 28 need number of points, so we should read it.
1 parent c593c15 commit 3688257

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)