Skip to main content
Forces the geometry into a 3-dimensional model so that all output representations will have X, Y and Z coordinates. An optionally given zValue is tacked onto the geometry if the geometry is 2-dimensional. Default value of zValue is 0.0 If the given geometry is 3-dimensional, no change is performed on it. If the given geometry is empty, no change is performed on it. This function is an alias for ST_Force3D.
Example output is after calling ST_AsText() on returned geometry, which adds Z for in the WKT for 3D geometries
ST_Force3DZ

Signatures

Parameters

geometry
Geometry
required
The input geometry.
zValue
Double
required
The Z coordinate value to assign. Defaults to 0.0 if not specified.

Return type

The resulting geometry.

Examples