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 6fa929c commit 9f5540aCopy full SHA for 9f5540a
src/shapefile.py
@@ -1493,6 +1493,7 @@ class _HasM(_CanHaveBBox):
1493
def _read_ms_from_byte_stream(
1494
b_io: ReadSeekableBinStream, nPoints: int, next_shape: int
1495
) -> tuple[MBox, list[float | None]]:
1496
+ mbox = None # Ensure mbox is always defined
1497
if next_shape - b_io.tell() >= 16:
1498
mbox = unpack("<2d", b_io.read(16))
1499
# Measure values less than -10e38 are nodata values according to the spec
0 commit comments