Skip to main content

ST_ENDPOINT

Introduced or updated: v1.2.458

Returns the last Point in a LineString.

Syntax

ST_ENDPOINT(<geometry>)

Arguments

ArgumentsDescription
<geometry>The argument must be an expression of type GEOMETRY that represents a LineString.

Return Type

Geometry.

Examples

SELECT
ST_ENDPOINT(
ST_GEOMETRYFROMWKT(
'LINESTRING(1 1, 2 2, 3 3, 4 4)'
)
) AS pipeline_endpoint;

┌───────────────────┐
│ pipeline_endpoint │
├───────────────────┤
POINT(4 4)
└───────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today