vectools.drop_z_if_zero()
Drop the Z axis when every Z coordinate is zero.
Usage
vectools.drop_z_if_zero(gdf)Parameters
gdf: geopandas.GeoDataFrame- Geometries to inspect.
Returns
geopandas.GeoDataFrame- Copied GeoDataFrame, possibly forced to 2D.
Raises
ValueError-
If the geometry does not have a Z axis.
TypeError- If the geometry type is unknown.