ST_RotateX — Rotates a geometry about the X axis.
geometry ST_RotateX(geometry geomA, float rotRadians);
Rotates a geometry geomA - rotRadians about the X axis.
                 
               | 
              |
| 
                 
  | 
            
Migliorato: Nella 2.0.0 è stato introdotto il supporto per le superfici poliedriche, i triangoli e i TIN.
Availability: 1.1.2. Name changed from RotateX to ST_RotateX in 1.2.2
            
 Questa funzione supporta le Polyhedral Surface. 
            
 Questa funzione supporta il 3d e non distrugge gli z-index. 
            
 Questa funzione supporta i Triangoli e le Triangulated Irregular Network Surfaces (TIN). 
--Rotate a line 90 degrees along x-axis
SELECT ST_AsEWKT(ST_RotateX(ST_GeomFromEWKT('LINESTRING(1 2 3, 1 1 1)'), pi()/2));
                 st_asewkt
---------------------------
 LINESTRING(1 -3 2,1 -1 1)