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

> Calculate an anchor point for a given geometry column.

Calculate an anchor point for a given geometry column.

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

## Signature

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

ST_LabelPoint(
    geometry: ColumnOrName,
    gridResolution: Optional[Union[ColumnOrNameOrNumber, int]] = None,
    goodnessThreshold: Optional[Union[ColumnOrNameOrNumber, float]] = None,
) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Input geometry column to calculate the anchor for.
</ParamField>

<ParamField path="gridResolution" type="Optional[Union[ColumnOrNameOrNumber, int]]" default="None">
  Optional step size for grid search when determining the best anchor point.
  Defaults to 2 if not provided.
</ParamField>

<ParamField path="goodnessThreshold" type="Optional[Union[ColumnOrNameOrNumber, float]]" default="None">
  Optional threshold for the minimum "goodness" value.
  Determines when to stop refining the anchor search.
  Defaults to 0.2 if not provided.
</ParamField>

## Returns

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


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