ST_EndPoint —
LINESTRING
の最後のポイントをPOINT
で返します.
boolean ST_EndPoint(
geometry g)
;
LINESTRING
の最後のポイントをPOINT
で返します.
入力パラメータがLINESTRING
でないならNULL
を返します.
このメソッドはSQL/MM仕様の実装です. SQL-MM 3: 7.1.4
この関数は三次元をサポートします.Zインデクスを削除しません.
postgis=# SELECT ST_AsText(ST_EndPoint('LINESTRING(1 1, 2 2, 3 3)'::geometry)); st_astext ------------ POINT(3 3) (1 row) postgis=# SELECT ST_EndPoint('POINT(1 1)'::geometry) IS NULL AS is_null; is_null ---------- t (1 row) --3d endpoint SELECT ST_AsEWKT(ST_EndPoint('LINESTRING(1 1 2, 1 2 3, 0 0 5)')); st_asewkt -------------- POINT(0 0 5) (1 row)