Skip to main content
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

Signature

Parameters

ColumnOrName
required
First geometry column.
ColumnOrName
required
Second geometry column.
Optional[Union[ColumnOrName, float]]
default:"-1"
Optional fraction in (0.0, 1.0] by which each segment is densified before computing the distance. Lower values are more accurate and slower.

Returns

Column
Hausdorff distance between g1 and g2, or null if either geometry is empty.