コンテンツにスキップ

LineStringの最後のPointを返します。

ST_ENDPOINT(<geometry>)
引数 説明
<geometry> LineStringを表すGEOMETRY型の式を指定する必要があります。

Geometry。

SELECT
ST_ENDPOINT(
ST_GEOMETRYFROMWKT(
'LINESTRING(1 1, 2 2, 3 3, 4 4)'
)
) AS pipeline_endpoint;
┌───────────────────┐
│ pipeline_endpoint │
├───────────────────┤
│ POINT(4 4) │
└───────────────────┘