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

# ST_BoundingDiagonal (Python)

> Returns a LineString with the min/max values of each dimension of the bounding box of the given geometry as its start/end coordinates.

Returns a LineString with the min/max values of each dimension of the bounding box of the given geometry as its
start/end coordinates.

SQL reference: [`ST_BoundingDiagonal`](/reference/wherobots-db/geometry-data/bounding-box/ST_BoundingDiagonal)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_BoundingDiagonal

ST_BoundingDiagonal(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry to return bounding diagonal of.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  LineString spanning min and max values of each dimension of the given geometry
</ResponseField>


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