Skip to main content
Return a geometry with a 4D coordinate of value ‘zValue’ and mValue forced upon it. No change happens if the geometry is already 4D, if geometry either has z or m, it will not change the existing z or m value. SQL reference: ST_Force4D

Signature

Parameters

ColumnOrName
required
Geometry column to make 4D
Optional[Union[ColumnOrName, float]]
default:"0.0"
Optional value of z coordinate to be potentially added, default value is 0.0
Optional[Union[ColumnOrName, float]]
default:"0.0"

Returns

Column
4D geometry with either already 4D geom or z and m component provided by zValue and mValue respectively