Skip to main content
Returns Z maxima of the given geometry or null if there is no Z coordinate. ST_ZMax

Signatures

ST_ZMax(geom: Geometry)

Parameters

geom
Geometry
required
The input geometry.

Return type

A numeric value.

Example

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