ST_FlipCoordinates — Returns a version of a geometry with X and Y axis flipped.
geometry ST_FlipCoordinates(geometry geom);
Returns a version of the given geometry with X and Y axis flipped. Useful for fixing geometries which contain coordinates expressed as latitude/longitude (Y,X).
Disponibilità: 2.0.0
            
 Questo metodo supporta le Curve e le Circular String. 
            
 Questa funzione supporta il 3d e non distrugge gli z-index. 
            
 Questa funzione supporta le coordinate M. 
            
 Questa funzione supporta le Polyhedral Surface. 
            
 Questa funzione supporta i Triangoli e le Triangulated Irregular Network Surfaces (TIN). 
SELECT ST_AsEWKT(ST_FlipCoordinates(GeomFromEWKT('POINT(1 2)')));
 st_asewkt
------------
POINT(2 1)