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_X

Introduction: Returns X Coordinate of given Point null otherwise.

ST_X

Format: ST_X(pointA: Point)

Return type: Double

SQL example:

SELECT ST_X(ST_POINT(0.0 25.0))

Output: 0.0