Skip to content

Commit 2396b2d

Browse files
authored
Fix compatibility with pyshp 3.0.0.
Fixes: #632
1 parent a7473ca commit 2396b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mpl_toolkits/basemap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2150,7 +2150,7 @@ def readshapefile(self,shapefile,name,drawbounds=True,zorder=None,
21502150
"shapefile to geographic coordinates using the shpproj utility",
21512151
"from the shapelib tools (http://shapelib.maptools.org/shapelib-tools.html)"])
21522152
shptype = shf.shapes()[0].shapeType
2153-
bbox = shf.bbox.tolist()
2153+
bbox = list(shf.bbox)
21542154
info = (shf.numRecords,shptype,bbox[0:2]+[0.,0.],bbox[2:]+[0.,0.])
21552155
npoly = 0
21562156
for shprec in shf.shapeRecords():

0 commit comments

Comments
 (0)