Skip to content

Commit

Permalink
update oa viz for polygons after spatial module change
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaS11 committed Dec 1, 2022
1 parent 6d7dde9 commit be0527a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion icepyx/core/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ def __init__(
self.bbox = query_obj.spatial.extent

else:
mrc_bound = query_obj.spatial.extent.minimum_rotated_rectangle
mrc_bound = (
query_obj.spatial.extent_as_gdf.geometry.unary_union.minimum_rotated_rectangle.bounds
)
# generate bounding box
lonmin = min(mrc_bound.exterior.coords.xy[0])
lonmax = max(mrc_bound.exterior.coords.xy[0])
Expand Down

0 comments on commit be0527a

Please sign in to comment.