ST_RemovePoint — ラインストリングからポイントを削除します。
geometry ST_RemovePoint(geometry linestring, integer offset);
geometry ST_RemovePoint(
)
ラインストリングからポイントを削除します。インデックスは0始まりです。閉じたリングを開いたラインストリングに変えるのに使います。
Availability: 1.1.0
This function supports 3d and will not drop the z-index.
-- 終点を削除して閉じたラインストリングが無いこを保障します。 -- 下の例ではthe_geomはラインストリングであると仮定しています。 UPDATE sometable SET the_geom = ST_RemovePoint(the_geom, ST_NPoints(the_geom) - 1) FROM sometable WHERE ST_IsClosed(the_geom) = true;
ST_AddPoint, ST_NPoints, ST_NumPoints