Skip to content

Commit 3f066ab

Browse files
fixed bug in bounding_box_from_countries
1 parent 35274ac commit 3f066ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/util/coordinates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ def bounding_box_from_countries(country_names, buffer=1.0):
17261726
longitudes, latitudes = [], []
17271727
for multipolygon in country_geometry:
17281728
if isinstance(multipolygon, Polygon): # if entry is polygon
1729-
for coord in polygon.exterior.coords: # Extract exterior coordinates
1729+
for coord in multipolygon.exterior.coords: # Extract exterior coordinates
17301730
longitudes.append(coord[0])
17311731
latitudes.append(coord[1])
17321732
else: # if entry is multipolygon

0 commit comments

Comments
 (0)