Skip to main content
Returns a version of the given geometry with X and Y axis flipped. ST_FlipCoordinates

Signatures

ST_FlipCoordinates(A: Geometry)

Parameters

A
Geometry
required
The input geometry.

Return type

The resulting geometry.

Example

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