ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeometryEngine Class / DropMs Method / DropMs(Geometry,Boolean) Method
The input geometry.
If true, then a new geometry is returned with the Geometry.HasM property set to true no matter if the input geometry has the property set to true or not. If false and the geometry Geometry.HasM property is false, then an exception will be thrown.

In This Topic
    DropMs(Geometry,Boolean) Method
    In This Topic
    Sets all the M-values to NaN.
    Syntax
    Public Overloads Function DropMs( _
       ByVal geometry As Geometry, _
       ByVal allowNonMGeometry As Boolean _
    ) As Geometry

    Parameters

    geometry
    The input geometry.
    allowNonMGeometry
    If true, then a new geometry is returned with the Geometry.HasM property set to true no matter if the input geometry has the property set to true or not. If false and the geometry Geometry.HasM property is false, then an exception will be thrown.

    Return Value

    The geometry with the M-values set to NaN. If the geometry is empty and the Geometry.HasM property is true, then the input geometry is returned unchanged. Otherwise, if allowNonMGeometry is true, a new geometry is returned with the Geometry.HasM property set to true.
    Exceptions
    ExceptionDescription
    Geometry is null.
    This geometry is not M-Aware and allowNonMGeometry is false.
    The method is not implemeted for GeometryBag.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also