Skip to main content
Force the dimensionality of a geometry to 3D. 2D geometries will get the provided Z coordinate; 3D geometries are unchanged (unless their Z coordinate is np.nan). Note: Sedona’s behavior may differ from Geopandas’ for M and ZM geometries. For M geometries, Sedona will replace the M coordinate and add the Z coordinate. For ZM geometries, Sedona will drop the M coordinate and retain the Z coordinate.

Signature

Parameters

float | array_like (default 0)
default:"0.0"
Z coordinate to be assigned

Returns

GeoSeries

Examples

Z coordinate can be specified as scalar:
Or as an array-like (one value per geometry):