名前

ST_Scroll — 閉じたLINESTRINGの開始点を変更する

概要

geometry ST_Scroll(geometry linestring, geometry point);

説明

閉じたLINESTRINGの開始/終了点を pointで指定した頂点に変更します。

Availability: 3.2.0

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

This function supports M coordinates.

閉じたラインの3番目の頂点を開始点にする

SELECT ST_AsEWKT(ST_Scroll('SRID=4326;LINESTRING(0 0 0 1, 10 0 2 0, 5 5 4 2,0 0 0 1)', 'POINT(5 5 4 2)'));

st_asewkt
----------
SRID=4326;LINESTRING(5 5 4 2,0 0 0 1,10 0 2 0,5 5 4 2)

関連情報

ST_Normalize