ST_HAUSDORFFDISTANCE
functionsupportedCore SQL functionsReturns 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
| Name | Required | Description |
|---|---|---|
geography_expression_1 | required | The argument must be an expression of type GEOGRAPHY. |
geography_expression_2 | required | The 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
- Returns NULL if one or more input points are NULL.