shapely.is_geometry#
- is_geometry(geometry, **kwargs)#
Returns True if the object is a geometry
- Parameters:
- geometryany object or array_like
- **kwargs
For other keyword-only arguments, see the NumPy ufunc docs.
See also
is_missing
check if an object is missing (None)
is_valid_input
check if an object is a geometry or None
Examples
>>> from shapely import GeometryCollection, Point >>> is_geometry(Point(0, 0)) True >>> is_geometry(GeometryCollection()) True >>> is_geometry(None) False >>> is_geometry("text") False