File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,13 @@ part of your geospatial project.
9393
9494# Version Changes
9595
96- ## Next
96+
97+ ## 3.0.3.dev
98+ ### Bug fix
99+ - Prevented UnboundLocalError when reading non-single point M and Z type Shapefiles (@ekawas-vrify ).
97100
98101### Testing.
99- - Test PyShp on the Python 3.14 official release (officially released this week, no longer in beta)
102+ - Test PyShp on the Python 3.14 official release (officially released this week, no longer in beta).
100103
101104## 3.0.2
102105
@@ -1572,6 +1575,7 @@ Casey Meisenzahl
15721575Charles Arnold
15731576David A. Riggs
15741577davidh-ssec
1578+ Edward Kawas
15751579Evan Heidtmann
15761580ezcitron
15771581fiveham
Original file line number Diff line number Diff line change 1- VERSION NEXT
1+ VERSION 3.0.3.dev
2+
3+ 2025-10-25
4+ Bug fix:
5+ * Prevented UnboundLocalError when reading non-single point M and Z type Shapefiles (@ekawas-vrify).
26
372025-10-10
48 Testing:
Original file line number Diff line number Diff line change 88
99from __future__ import annotations
1010
11- __version__ = "3.0.3.dev0 "
11+ __version__ = "3.0.3.dev "
1212
1313import array
1414import doctest
@@ -1492,7 +1492,8 @@ class _HasM(_CanHaveBBox):
14921492 @staticmethod
14931493 def _read_ms_from_byte_stream (
14941494 b_io : ReadSeekableBinStream , nPoints : int , next_shape : int
1495- ) -> tuple [MBox , list [float | None ]]:
1495+ ) -> tuple [MBox | None , list [float | None ]]:
1496+ mbox = None # Ensure mbox is always defined
14961497 if next_shape - b_io .tell () >= 16 :
14971498 mbox = unpack ("<2d" , b_io .read (16 ))
14981499 # Measure values less than -10e38 are nodata values according to the spec
You can’t perform that action at this time.
0 commit comments