shapely.is_missing#

is_missing(geometry, **kwargs)#

Returns True if the object is not a geometry (None)

Parameters
geometryany object or array_like
**kwargs

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

See also

is_geometry

check if an object is a geometry

is_valid_input

check if an object is a geometry or None

is_empty

checks if the object is an empty geometry

Examples

>>> from shapely import GeometryCollection, Point
>>> is_missing(Point(0, 0))
False
>>> is_missing(GeometryCollection())
False
>>> is_missing(None)
True
>>> is_missing("text")
False