文档

ST_InterpolatePoint

更新时间:

根据提供的点,返回输入Geometry对象离提供的点最近的点的M值。

语法

float8  ST_InterpolatePoint(geometry  line , geometry  point);

参数

参数名称

描述

line

目标LineString对象。

point

目标Point对象。

描述

该函数支持3D对象,并且不会删除Z坐标。

示例

SELECT ST_InterpolatePoint('LINESTRING M (0 0 0, 2 0 2)', 'POINT(1 1)');
 st_interpolatepoint
---------------------
                   1
(1 row)
                
  • 本页导读 (1)
文档反馈