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

> Returns the perimeter of a Polygon/MultiPolygon geometries.

Returns the perimeter of a Polygon/MultiPolygon geometries. Otherwise, returns 0

@param geom: Polygonal geometry
@param use\_spheroid: Use Spheroid
@param lenient: suppresses the exception
@return: Perimeter of a Polygon/MultiPolygon geometries

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

## Signature

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

ST_Perimeter(
    geom: ColumnOrName,
    use_spheroid: Optional[Union[ColumnOrName, bool]] = None,
    lenient: Optional[Union[ColumnOrName, bool]] = None,
) -> Column
```

## Parameters

<ParamField path="geom" type="ColumnOrName" required />

<ParamField path="use_spheroid" type="Optional[Union[ColumnOrName, bool]]" default="None" />

<ParamField path="lenient" type="Optional[Union[ColumnOrName, bool]]" default="None" />


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