You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When shapely 2.0.2 falls back to the _oriented_envelope_min_area algorithm when older GEOS is present, shapely.oriented_envelope fails when a GeoSeries is given.
Expected behavior and actual behavior.
When shapely 2.0.2 falls back to the
_oriented_envelope_min_area
algorithm when older GEOS is present,shapely.oriented_envelope
fails when a GeoSeries is given.Steps to reproduce the problem.
We need to pass a GeoSeries here but since it has a
geom_type
attribute, it is send togeometry.is_empty
which fails.shapely/shapely/algorithms/_oriented_envelope.py
Lines 20 to 23 in 9540b77
I suppose that replacing
not hasattr(geometry, "geom_type")
with some more generic check for array-like would fix it. Maybe check for"len"
?Operating system
All of them
Shapely version and provenance
Shapely 2.0.2 with GEOS < 3.12.
The text was updated successfully, but these errors were encountered: