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_XMax

Introduction: Returns the maximum X coordinate of a geometry

ST_XMax

Format: ST_XMax (A: Geometry)

Return type: Double

Since: v1.2.1

SQL Example

SELECT ST_XMax(ST_GeomFromText('POLYGON ((-1 -11, 0 10, 1 11, 2 12, -1 -11))'))

Output:

2