ArcGIS Pro 3.4 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.
Version

GetNonSimpleReason Method (GeometryEngine)
Indicates whether this geometry is topologically correct.
Syntax

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