ST_HausdorffDistanceVertices is never smaller than ST_HausdorffDistance(g1, g2), the overload without a densityFraction. It takes no densityFraction parameter itself.
If either geometry is empty, null is returned.
That bound does not extend to the densified overload. Densification adds sampled points along the segments, and those samples can be farther from the other geometry than any of its vertices are, so
ST_HausdorffDistance(g1, g2, densityFrac) may return a larger value. For example, LINESTRING (0 0, 10 0) and MULTIPOINT ((0 1), (10 1)) give 1.0 from ST_HausdorffDistanceVertices but sqrt(26) (5.0990195135927845) from ST_HausdorffDistance(..., 0.5), which samples the line’s midpoint.Even though the function accepts 3D geometry, the z ordinate is ignored and the computed distance is equivalent to the geometries not having the z ordinate.
Signatures
Parameters
Geometry
required
The g1 value.
Geometry
required
The g2 value.
Return type
A numeric value.
Examples
sqrt(29) rather than the segment-based sqrt(26):

