POINT and a LINESTRING or MULTILINESTRING is less than or equal to a threshold. The arguments can be supplied in either order.
For GEOGRAPHY, the function evaluates spherical OGC:CRS84 edges and the threshold is in meters. For GEOMETRY, it evaluates planar edges and the threshold uses the units of the declared CRS. GEOMETRY inputs must have compatible descriptors. This function does not perform CRS transformation.
Syntax
Parameters
- The geometry arguments must form a
POINT/LINESTRINGorPOINT/MULTILINESTRINGpair. distancemust be finite and nonnegative. Equality is included.- All geometry values must be two-dimensional.
GEOGRAPHY line is rejected because it does not define a unique shortest spherical edge.
Return value
ReturnsNULL if a geometry argument or the threshold is NULL. Returns false if a geometry argument is EMPTY. Unsupported families or descriptors, an invalid threshold, mixed GEOGRAPHY/GEOMETRY values, and incompatible GEOMETRY descriptors produce an error.