დასახელება

ST_InterpolatePoint — Returns the interpolated measure of a geometry closest to a point.

სინოპსისი

float8 ST_InterpolatePoint(geometry linear_geom_with_measure, geometry point);

აღწერა

Returns an interpolated measure value of a linear measured geometry at the location closest to the given point.

[შენიშვნა]

Use this function only for linear geometries with an M component

Availability: 2.0.0

This function supports 3d and will not drop the z-index.

მაგალითები

Code
SELECT ST_InterpolatePoint(
'LINESTRING M (0 0 0,10 0 20)',
'POINT(5 5)');
Output
10
Figure
Geometry figure for visual-st-interpolatepoint-01

ასევე იხილეთ

ST_AddMeasure, ST_LocateAlong, ST_LocateBetween