We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e2ff4e commit 6e26248Copy full SHA for 6e26248
shapefile.py
@@ -391,8 +391,7 @@ def __shapeIndex(self, i=None):
391
shx.seek(100)
392
for r in range(numRecords):
393
# Offsets are 16-bit words just like the file length
394
- self._offsets.append(unpack(">i", shx.read(4))[0] * 2)
395
- shx.seek(4, 1)
+ self._offsets.append(unpack('>i4x', shx.read(8))[0] * 2)
396
if not i == None:
397
return self._offsets[i]
398
0 commit comments