跳转至
Apache Sedona 1.9.0 已正式发布,新增 Spark 4.1 支持、proj4sedona 坐标系转换、Bing Tile 函数等众多特性!

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