Skip to content
Apache Sedona 1.9.0 is out now, featuring Spark 4.1 support, proj4sedona CRS transformation, Bing Tile functions, and more!

ST_StartPoint

Introduction: Returns first point of given linestring.

ST_StartPoint

Format: ST_StartPoint(geom: geometry)

Return type: Geometry

SQL example:

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

Output: POINT(100 150)