shapely.is_missing#
- is_missing(geometry, **kwargs)#
Return True if the object is not a geometry (None).
- Parameters:
- geometryany object or array_like
Geometry or geometries to check.
- **kwargs
See NumPy ufunc docs for other keyword arguments.
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
>>> import shapely >>> from shapely import GeometryCollection, Point >>> shapely.is_missing(Point(0, 0)) False >>> shapely.is_missing(GeometryCollection()) False >>> shapely.is_missing(None) True >>> shapely.is_missing("text") False