Name

ST_Z — Retrieves the z coordinate of a geometry.

Synopsis

ST_Z ( in g any );

Description

Retrieves the x coordinate of a geometry.

Parameters

g

Geometry

Return Types

Returns double precision.

Examples

Example24.680.Simple Use

SELECT st_z( st_point (10, 20, 30, 40));
DOUBLE PRECISION
 30