Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

ST_ZMax

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

ST_ZMax

Format: ST_ZMax(geom: geometry)

Return type: Double

SQL example:

SELECT ST_ZMax(ST_GeomFromText('POLYGON((0 0 1, 1 1 1, 1 2 1, 1 1 1, 0 0 1))'))

Output: 1.0