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

Returns Z maxima of the given geometry or null if there is no Z coordinate.

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

## Signatures

```sql theme={"system"}
ST_ZMax(geom: Geometry)
```

## Parameters

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

## Return type

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

## Example

```sql theme={"system"}
SELECT ST_ZMax(ST_GeomFromText('POLYGON((0 0 1, 1 1 1, 1 2 1, 1 1 1, 0 0 1))'))
```

```
1.0
```
