Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

ST_RotateX

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

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

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))