ST_MinimumWidthRectangle
Processing
ST_MinimumWidthRectangle (Python)
Return the minimum-width rotated rectangle enclosing a geometry.
Return the minimum-width rotated rectangle enclosing a geometry.
Unlike ST_OrientedEnvelope which minimizes area, this function minimizes
the width (shortest side) of the enclosing rectangle.
SQL reference:

