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

Returns the maximum X coordinate of a geometry

<img src="https://mintcdn.com/wherobots/wLm_IRUSNlHZTHJP/images/sql-functions/ST_XMax/ST_XMax.svg?fit=max&auto=format&n=wLm_IRUSNlHZTHJP&q=85&s=02a57651c92a7078099fcc2b50ae3c63" alt="ST_XMax" width="400" height="160" data-path="images/sql-functions/ST_XMax/ST_XMax.svg" />

## Signatures

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

## Parameters

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

## Return type

<ResponseField type="Double">
  A numeric value.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_XMax(ST_GeomFromText('POLYGON ((-1 -11, 0 10, 1 11, 2 12, -1 -11))'))
```

```
2
```
