Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

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