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_RotateX

Introduction: Performs a counter-clockwise rotation of the specified geometry around the X-axis by the given angle measured in radians.

ST_RotateX

Format: ST_RotateX(geometry: Geometry, angle: Double)

Return type: Geometry

Since: v1.6.1

SQL Example:

SELECT ST_RotateX(ST_GeomFromEWKT('SRID=4326;POLYGON ((0 0, 1 0, 1 1, 0 0))'), 10)

Output:

SRID=4326;POLYGON ((0 0, 1 0, 1 -0.8390715290764524, 0 0))