Skip to content
πŸŽ‰ SedonaDB 0.4.0 is out now! πŸ—ΊοΈ Python DataFrame API, R dplyr, Geography support & GPU-accelerated spatial joins. Read the release blog β†’

ST_EndPoint

Introduction: Returns last point of given linestring.

ST_EndPoint

Format: ST_EndPoint(geom: Geometry)

Return type: Geometry

Since: v1.0.0

SQL Example

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

Output:

POINT(160 170)