ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Geometry Namespace / Geometry Class / IsEqual Method / IsEqual(Geometry,Double) Method
A geometry to test for equality while considering the tolerance.
The tolerance to be used when determining if the geometries are equal.

In This Topic
    IsEqual(Geometry,Double) Method
    In This Topic
    Compares two geometries for equality while considering the given tolerance.
    Syntax
    public bool IsEqual( 
       Geometry other,
       double tolerance
    )
    Public Overloads Function IsEqual( _
       ByVal other As Geometry, _
       ByVal tolerance As Double _
    ) As Boolean

    Parameters

    other
    A geometry to test for equality while considering the tolerance.
    tolerance
    The tolerance to be used when determining if the geometries are equal.

    Return Value

    True if the two geometries are equal, false otherwise.
    Exceptions
    ExceptionDescription
    The input tolerance is < 0 or is NaN.
    Remarks
    The tolerance value is used to compare x, y, and other attributes. For example, if Abs(x1 - x2) <= tolerance, then x1 and x2 are considered to be equal. All other properties of the geometry have to be equal exactly (geometry type, point count, etc.). For topological equality, use relational operators instead of this function.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.8 or higher.
    See Also