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

AreEqual Method (SpatialReference)
Determines if two spatial references are equal.
Syntax

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