文档

ST_LocateAlong

更新时间:

返回Geometry对象中M值与给定的M值一样的元素。

语法

geometry  ST_LocateAlong(geometry  ageomWithMeasure , float8  aMeasure , float8  offset);

参数

参数名称

描述

ageomWithMeasure

具有M坐标值的Geometry对象。

aMeasure

M值。

offset

偏移量。

描述

  • 该函数不支持多边形形式的对象。

  • 该函数只对具有M坐标的对象有用。

  • 如果提供了偏移量,则结果将向输入线的左侧或右侧偏移指定数量的单位。

    正偏移量将在左侧,负偏移量将在右侧。

示例

SELECT ST_AsText(ST_LocateAlong(ST_GeomFromText('MultiPointM((1 2 3),(5 4 3),(4 5 6))'),3));
         st_astext
----------------------------
 MULTIPOINT M (1 2 3,5 4 3)
(1 row)
                
  • 本页导读 (1)
文档反馈