shapely.is_empty#
- is_empty(geometry, **kwargs)#
Return True if a geometry is an empty point, polygon, etc.
- Parameters:
- geometryGeometry or array_like
Any geometry type is accepted.
- **kwargs
See NumPy ufunc docs for other keyword arguments.
See also
is_missing
checks if the object is a geometry
Examples
>>> from shapely import Point >>> is_empty(Point()) True >>> is_empty(Point(0, 0)) False >>> is_empty(None) False