ST_ENDPOINT(Lakehouse v1)
返回 LineString 中的最后一个 Point。
SQL 语法
Section titled “SQL 语法”ST_ENDPOINT(<geometry>)| 参数 | 说明 |
|---|---|
<geometry> |
参数必须是表示 LineString 的 GEOMETRY 类型表达式。 |
Geometry。
SQL 示例
Section titled “SQL 示例”SELECT ST_ENDPOINT( ST_GEOMETRYFROMWKT( 'LINESTRING(1 1, 2 2, 3 3, 4 4)' ) ) AS pipeline_endpoint;
┌───────────────────┐│ pipeline_endpoint │├───────────────────┤│ POINT(4 4) │└───────────────────┘