Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

ST_FlipCoordinates

Introduction: Returns a version of the given geometry with X and Y axis flipped.

Format: ST_FlipCoordinates(A: Geometry)

Since: v1.0.0

SQL Example

SELECT ST_FlipCoordinates(ST_GeomFromWKT("POINT (1 2)"))

Output:

POINT (2 1)