> ## 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.

# GeoSeries.minimum_clearance_line

> Return linestrings whose endpoints define the minimum clearance.

Return linestrings whose endpoints define the minimum clearance.

A geometry's minimum clearance is the smallest distance by which a
vertex could be moved to produce an invalid geometry. If a geometry has
no minimum clearance, an empty LineString is returned.

## Signature

```python theme={"system"}
minimum_clearance_line() -> GeoSeries
```

## Returns

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

**See also**

* `GeoSeries.minimum_clearance`: minimum clearance distance

## Examples

```python theme={"system"}
>>> from sedona.spark.geopandas import GeoSeries
>>> from shapely.geometry import Polygon, LineString, Point
>>> s = GeoSeries(
...     [
...         Polygon([(0, 0), (1, 1), (0, 1), (0, 0)]),
...         LineString([(0, 0), (1, 1), (3, 2)]),
...         Point(0, 0),
...     ]
... )
>>> s.minimum_clearance_line()
0    LINESTRING (0 1, 0.5 0.5)
1        LINESTRING (0 0, 1 1)
2             LINESTRING EMPTY
dtype: geometry
```


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