Computes the oriented envelope (minimum rotated rectangle) that encloses an input geometry, such that the resulting rectangle has minimum area.
Unlike envelope this rectangle is not constrained to be parallel to the coordinate axes. If the convex hull of the object is a degenerate (line or point) this degenerate is returne
Just noted that shapely now contains methods
minimum_rotated_rectangle
andoriented_envelope
which at first look solve the same problem: https://shapely.readthedocs.io/en/maint-2.0/reference/shapely.oriented_envelope.html