Construct a Point from X, Y and Z and an optional srid. If srid is not set, it defaults to 0 (unknown).
Must use ST_AsEWKT function to print the Z coordinate.
Signatures
ST_PointZ (X: Double, Y: Double, Z: Double)
ST_PointZ (X: Double, Y: Double, Z: Double, srid: Integer)
Parameters
The X coordinate (longitude).
The Y coordinate (latitude).
The Z coordinate (elevation).
Spatial Reference Identifier.
Return type
Example
SELECT ST_AsEWKT(ST_PointZ(1.2345, 2.3456, 3.4567))
POINT Z(1.2345 2.3456 3.4567)