ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / SpatialReference Class / AreEqual Method
The first spatial reference.
The spatial reference to compare to.
If set to true and if one SpatialReference is Unknown and the other is not, the two will be considered the same. Default value is false.
Default value is false. If set to true and the resolutions are not equal, false will be returned.

In This Topic
    AreEqual Method (SpatialReference)
    In This Topic
    Determines if two spatial references are equal.
    Syntax
    Public Shared Function AreEqual( _
       ByVal sr1 As SpatialReference, _
       ByVal sr2 As SpatialReference, _
       Optional ByVal ignoreUnknown As Boolean, _
       Optional ByVal checkResolution As Boolean _
    ) As Boolean

    Parameters

    sr1
    The first spatial reference.
    sr2
    The spatial reference to compare to.
    ignoreUnknown
    If set to true and if one SpatialReference is Unknown and the other is not, the two will be considered the same. Default value is false.
    checkResolution
    Default value is false. If set to true and the resolutions are not equal, false will be returned.

    Return Value

    True if the two spatial references are the same.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also