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