Name

ST_InterpolatePoint — 返回最接近点的几何图形的内插度量。

Synopsis

float8 ST_InterpolatePoint(geometry line, geometry point);

描述

返回几何图形在与所提供的点接近的点处的测量尺寸值。

可用性:2.0.0

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

示例

SELECT ST_InterpolatePoint('LINESTRING M (0 0 0, 10 0 20)', 'POINT(5 5)');
 st_interpolatepoint
 ---------------------
         10
        

另请参阅

ST_AddMeasure, ST_LocateAlong, ST_LocateBetween