ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeometryEngine Class / GetNonSimpleReason Method
The geometry to be tested.
The reason that the geometry is non-simple.
(Optional) The default value is false. When true, the geometry will be tested for simplicity even if it has already been tested or simplified. Geometry has a non-persisted internal flag that is set by IsSimpleAsFeature or SimplifyAsFeature calls. The flag is used to avoid computations if the state of the geometry is known.

In This Topic
    GetNonSimpleReason Method (GeometryEngine)
    In This Topic
    Indicates whether this geometry is topologically correct.
    Syntax
    Public Function GetNonSimpleReason( _
       ByVal geometry As Geometry, _
       ByRef nonSimpleReason As NonSimpleReason, _
       ByVal forceIsSimple As Boolean _
    ) As Boolean

    Parameters

    geometry
    The geometry to be tested.
    nonSimpleReason
    The reason that the geometry is non-simple.
    forceIsSimple
    (Optional) The default value is false. When true, the geometry will be tested for simplicity even if it has already been tested or simplified. Geometry has a non-persisted internal flag that is set by IsSimpleAsFeature or SimplifyAsFeature calls. The flag is used to avoid computations if the state of the geometry is known.

    Return Value

    Returns true if the geometry is simple. Otherwise, returns false.
    Exceptions
    ExceptionDescription
    Geometry is null.
    The method is not implemented for GeometryBag.
    Remarks
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also