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

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

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

## Signatures

```sql theme={"system"}
ST_MMax(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_MMax(
        ST_GeomFromWKT('POLYGON ZM ((30 10 5 1, 40 40 10 2, 20 40 15 3, 10 20 20 4, 30 10 5 1))')
)
```

```
4.0
```
