> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_FlipCoordinates

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

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_FlipCoordinates/ST_FlipCoordinates.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=f5fa076e1e6c7ac6369381727079049d" alt="ST_FlipCoordinates" width="500" height="300" data-path="images/sql-functions/ST_FlipCoordinates/ST_FlipCoordinates.svg" />

## Signatures

```sql theme={"system"}
ST_FlipCoordinates(A: Geometry)
```

## Parameters

<ParamField body="A" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_FlipCoordinates(ST_GeomFromWKT("POINT (1 2)"))
```

```
POINT (2 1)
```
