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 227bffd commit e520f52Copy full SHA for e520f52
shapefile.py
@@ -1424,6 +1424,7 @@ def __dbfHeader(self):
1424
raise ShapefileException("Shapefile Reader requires a shapefile or file-like object. (no dbf file found)")
1425
dbf = self.dbf
1426
# read relevant header parts
1427
+ dbf.seek(0)
1428
self.numRecords, self.__dbfHdrLength, self.__recordLength = \
1429
unpack("<xxxxLHH20x", dbf.read(32))
1430
# read fields
0 commit comments