> ## 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_Reverse

Return the geometry with vertex order reversed

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

## Signatures

```sql theme={"system"}
ST_Reverse (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_Reverse(ST_GeomFromWKT('LINESTRING(0 0, 1 2, 2 4, 3 6)'))
```

```
LINESTRING (3 6, 2 4, 1 2, 0 0)
```
