跳到主要内容

ST_ENDPOINT

引入或更新版本:v1.2.458

返回 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)
└───────────────────┘
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册