shapely.is_empty#

is_empty(geometry, **kwargs)#

Returns True if a geometry is an empty point, polygon, etc.

Parameters
geometryGeometry or array_like

Any geometry type is accepted.

**kwargs

For other keyword-only arguments, see the NumPy ufunc docs.

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