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

> Returns discretized (and hence approximate) hausdorff distance between two given geometries.

Returns discretized (and hence approximate) hausdorff distance between two given geometries.
Optionally, a distance fraction can also be provided which decreases the gap between actual and discretized hausforff distance

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

## Signature

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

ST_HausdorffDistance(
    g1: ColumnOrName,
    g2: ColumnOrName,
    densityFrac: Optional[Union[ColumnOrName, float]] = -1,
) -> Column
```

## Parameters

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

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

<ParamField path="densityFrac" type="Optional[Union[ColumnOrName, float]]" default="-1">
  Optional
</ParamField>

## Returns

<ResponseField name="return" type="Column" />


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