> ## 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_Length2D (Python)

> Calculate the length of a linestring geometry.

Calculate the length of a linestring geometry.

SQL reference: [`ST_Length2D`](/reference/wherobots-db/geometry-data/measurement/ST_Length2D)

## Signature

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

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

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Linestring geometry column to calculate length for.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Length of geometry as a double column.
</ResponseField>


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