ST_HAUSDORFFDISTANCE

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Returns the discrete Hausdorff distance between two GEOGRAPHY objects. The Hausdorff distance indicates how similar the two objects are. Two objects are considered to be similar if each point in one object is close to a point in the other object. The Hausdorff distance is the greatest distance between a point in one object and a point in the other object. ST_HAUSDORFFDISTANCE returns the discrete Hausdorff distance, which is calculated by comparing only the vertices (discrete points) and not arbitrary points along the edge.

Syntax

ST_HAUSDORFFDISTANCE( <geography_expression_1> , <geography_expression_2> )

Parameters

NameRequiredDescription
geography_expression_1requiredThe argument must be an expression of type GEOGRAPHY.
geography_expression_2requiredThe argument must be an expression of type GEOGRAPHY.

Returns

Returns a value of type REAL that represents the discrete Hausdorff distance in degrees.

Usage notes