1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Bas Couwenberg <sebastic@debian.org>
Date: Sat, 16 Aug 2025 14:09:43 +0200
Subject: Fix compatibility with pyshp 3.0.0.
Bug-Debian: https://bugs.debian.org/1110711
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1110711;filename=basemap_1.4.1-1.debdiff;msg=12
Bug: https://github.com/matplotlib/basemap/issues/632
Forwarded: https://github.com/matplotlib/basemap/pull/634
---
packages/basemap/src/mpl_toolkits/basemap/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/basemap/src/mpl_toolkits/basemap/__init__.py b/packages/basemap/src/mpl_toolkits/basemap/__init__.py
index 6598d4a..506d45b 100644
--- a/packages/basemap/src/mpl_toolkits/basemap/__init__.py
+++ b/packages/basemap/src/mpl_toolkits/basemap/__init__.py
@@ -2149,7 +2149,7 @@ class Basemap(object):
"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():
|