全部產品
Search
文件中心

PolarDB:ST_LocateAlong

更新時間:Jul 06, 2024

返回Geometry對象中M值與給定的M值一樣的元素。

文法

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

參數

參數名稱描述
ageomWithMeasure具有M座標值的Geometry對象。
aMeasureM值。
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)