Skip to content
Open
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
Fix compatibility with pyshp 3.0.0.
Fixes: #632
  • Loading branch information
sebastic authored Aug 16, 2025
commit 2396b2d184ea3d630d9d3b2c6807fcebe5eb2e5b
2 changes: 1 addition & 1 deletion src/mpl_toolkits/basemap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,7 @@ def readshapefile(self,shapefile,name,drawbounds=True,zorder=None,
"shapefile to geographic coordinates using the shpproj utility",
"from the shapelib tools (http://shapelib.maptools.org/shapelib-tools.html)"])
shptype = shf.shapes()[0].shapeType
bbox = shf.bbox.tolist()
bbox = list(shf.bbox)
info = (shf.numRecords,shptype,bbox[0:2]+[0.,0.],bbox[2:]+[0.,0.])
npoly = 0
for shprec in shf.shapeRecords():
Expand Down