Nome

ST_RotateX — Rotates a geometry about the X axis.

Sinopse

geometry ST_RotateX(geometry geomA, float rotRadians);

Descrição

Rotates a geometry geomA - rotRadians about the X axis.

[Nota]

ST_RotateX(geomA, rotRadians) is short-hand for ST_Affine(geomA, 1, 0, 0, 0, cos(rotRadians), -sin(rotRadians), 0, sin(rotRadians), cos(rotRadians), 0, 0, 0).

Melhorias: 2.0.0 suporte para superfícies poliédricas, triângulos e TIN introduzido.

Availability: 1.1.2. Name changed from RotateX to ST_RotateX in 1.2.2

This function supports Polyhedral surfaces.

This function supports 3d and will not drop the z-index.

This function supports Triangles and Triangulated Irregular Network Surfaces (TIN).

Exemplos

This example rotates a line 90 degrees around the X axis.

Code
SELECT ST_RotateX('LINESTRING(1 2 3,1 1 1)', pi()/2);
Raster Outputs
LINESTRING(1 -3 2,1 -1 1)
Figure
Geometry figure for visual-st-rotatex-01