跳转到内容

返回 LineString 中的第一个 Point。

ST_STARTPOINT(<geometry>)
参数 说明
<geometry> 参数必须是表示 LineString 的 GEOMETRY 类型表达式。

Geometry。

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