ST_ClosestPoint
Signature
Description
Returns the point of geomA
closest to geomB
using 2D distances
(z-coordinates are ignored).
What if the closest point is not unique?
Then the first one found is returned.
The point returned depends on the order of the Geometry's
coordinates.
Examples
geomA Point |
geomB Polygon |
POINT(4 8) |
LINESTRING(1 2, 3 6, 5 7, 4 1) |
See also