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

> Calculate a geometry that represents all points whose distance from the input geometry column is equal to or less than a given amount.

Calculate a geometry that represents all points whose distance from the
input geometry column is equal to or less than a given amount.

SQL reference: [`ST_Buffer`](/reference/wherobots-db/geometry-data/processing/ST_Buffer)

## Signature

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

ST_Buffer(
    geometry: ColumnOrName,
    buffer: ColumnOrNameOrNumber,
    useSpheroid: Optional[Union[ColumnOrName, bool]] = False,
    parameters: Optional[Union[ColumnOrName, str]] = None,
) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Input geometry column to buffer.
</ParamField>

<ParamField path="buffer" type="ColumnOrNameOrNumber" required>
  Either a column or value for the amount to buffer the input geometry by.
</ParamField>

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

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

## Returns

<ResponseField name="return" type="Column">
  Buffered geometry as a geometry column.
</ResponseField>


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