Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

ST_EndPoint

Introduction: Returns last point of given linestring.

ST_EndPoint

Format: ST_EndPoint(geom: Geometry)

Return type: Geometry

Since: v1.5.0

Example:

SELECT ST_EndPoint(ST_GeomFromText('LINESTRING(100 150,50 60, 70 80, 160 170)'))

Output:

POINT(160 170)