shapely.get_z#
- get_z(point, **kwargs)#
Return the z-coordinate of a point.
- Parameters:
- pointGeometry or array_like
Non-point geometries or geometries without Z dimension will result in NaN being returned.
- **kwargs
See NumPy ufunc docs for other keyword arguments.
Examples
>>> import shapely >>> from shapely import MultiPoint, Point >>> shapely.get_z(Point(1, 2, 3)) 3.0 >>> shapely.get_z(Point(1, 2)) nan >>> shapely.get_z(MultiPoint([(1, 1, 1), (2, 2, 2)])) nan