Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ part of your geospatial project.

# Version Changes

## 3.0.9
## 3.0.9.dev
### Bug fix
- Correct NODATA lower threshold to -1e38 (as per [spec](https://www.esri.com/content/dam/esrisites/sitecore-archive/Files/Pdfs/library/whitepapers/pdfs/shapefile.pdf) 2, Numeric Types). This is 10% of
PyShp's previous threshold -10e38, so it is possible large negative values x (-1e39 < x < -1e38 will now be NODATA.


### Security
- Add python_version >= 3.10 to pre-commit dev & lint groups' 'dependency' (due to CVE in filelock 3.19).

Expand Down Expand Up @@ -514,7 +519,7 @@ and the bounding box area the shapefile covers:
>>> len(sf)
663
>>> sf.bbox
(-122.515048, 37.652916, -122.327622, 37.863433)
BBox(xmin=-122.515048, ymin=37.652916, xmax=-122.327622, ymax=37.863433)

Finally, if you would prefer to work with the entire shapefile in a different
format, you can convert all of it to a GeoJSON dictionary, although you may lose
Expand Down Expand Up @@ -1473,7 +1478,7 @@ Shapefiles containing M-values can be examined in several ways:
>>> r = shapefile.Reader('shapefiles/test/linem')

>>> r.mbox # the lower and upper bound of M-values in the shapefile
(0.0, 3.0)
MBox(mmin=0.0, mmax=3.0)

>>> r.shape(0).m # flat list of M-values
[0.0, None, 3.0, None, 0.0, None, None]
Expand Down Expand Up @@ -1506,7 +1511,7 @@ To examine a Z-type shapefile you can do:
>>> r = shapefile.Reader('shapefiles/test/linez')

>>> r.zbox # the lower and upper bound of Z-values in the shapefile
(0.0, 22.0)
ZBox(zmin=0.0, zmax=22.0)

>>> r.shape(0).z # flat list of Z-values
[18.0, 20.0, 22.0, 0.0, 0.0, 0.0, 0.0, 15.0, 13.0, 14.0]
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
VERSION 3.0.9.dev

2026-05-23
Bug fix (BREAKING CHANGE):
* Correct NODATA lower threshold to -1e38 (as per [spec](https://www.esri.com/content/dam/esrisites/sitecore-archive/Files/Pdfs/library/whitepapers/pdfs/shapefile.pdf)
page 2, Numeric Types). This is a tenth of PyShp's previous threshold -10e38, but still a huge negative number.

2026-05-20
Security:
* Add python_version >= 3.10 to pre-commit dev & lint groups' 'dependency' (due to CVE in filelock 3.19).
Expand Down
Loading
Loading