ST_ZMax

Signature

DOUBLE ST_ZMax(GEOMETRY geom);

Description

Returns the maximum z-value of geom.

Example

SELECT ST_ZMax('LINESTRING(1 2 3, 4 5 6)');
-- Answer:    6.0

See also