跳转到内容

返回 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) │
└───────────────────┘