shapely.has_m#
- has_m(geometry, **kwargs)#
Returns True if a geometry has M coordinates.
Note
‘has_m’ requires at least GEOS 3.12.0.
New in version 2.1.0.
- Parameters:
- geometryGeometry or array_like
- **kwargs
See NumPy ufunc docs for other keyword arguments.
See also
Examples
>>> from shapely import from_wkt >>> has_m(from_wkt("POINT (0 0)")) False >>> has_m(from_wkt("POINT Z (0 0 0)")) False >>> has_m(from_wkt("POINT M (0 0 0)")) True >>> has_m(from_wkt("POINT ZM (0 0 0 0)")) True