GEOGRAPHY, the function evaluates spherical OGC:CRS84 edges and returns meters. For GEOMETRY, it evaluates planar edges and returns the units of the declared CRS. GEOMETRY inputs must have compatible descriptors. This function does not perform CRS transformation.
Syntax
Parameters
The supported family pairs are:POINTwithPOINTPOINTwithLINESTRINGorMULTILINESTRING, in either argument order
GEOGRAPHY line is rejected because it does not define a unique shortest spherical edge.
Return value
ReturnsNULL if either input is NULL or EMPTY. Unsupported families or descriptors, mixed GEOGRAPHY/GEOMETRY values, and incompatible GEOMETRY descriptors produce an error.