> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GeoDataFrame.minimum_rotated_rectangle

> Return the minimum rotated rectangle (oriented envelope) that encloses each geometry.

Return the minimum rotated rectangle (oriented envelope) that
encloses each geometry.

Unlike `envelope`, the rectangle may be rotated to better fit the
geometry.

## Signature

```python theme={"system"}
minimum_rotated_rectangle()
```

## Returns

<ResponseField name="return" type="GeoSeries" />

**See also**

* `GeoSeries.envelope`: axis-aligned bounding rectangle
* `GeoSeries.convex_hull`: convex hull geometry

## Examples

```python theme={"system"}
>>> from sedona.spark.geopandas import GeoSeries
>>> from shapely.geometry import MultiPoint
>>> s = GeoSeries(
...     [MultiPoint([(0, 0), (1, 0), (0.5, 1)])]
... )
>>> s.minimum_rotated_rectangle()
0    POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))
dtype: geometry
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.