Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

ST_MMax

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

Format: ST_MMax(geom: Geometry)

Since: v1.6.1

SQL Example

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))')
)

Output:

4.0