![]() ![]() |
ESRI.ArcGIS.ADF.Web | |
Compare(SpatialReference,SpatialReference) Method | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.SpatialReference Namespace > SpatialReference Class > Compare Method : Compare(SpatialReference,SpatialReference) Method |
- aSpatialReference
- First spatial reference to compare.
- otherSpatialReference
- Second spatial reference to compare.
Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function Compare( _ ByVal aSpatialReference As SpatialReference, _ ByVal otherSpatialReference As SpatialReference _ ) As Boolean |
Visual Basic (Usage) | ![]() |
---|---|
Dim aSpatialReference As SpatialReference Dim otherSpatialReference As SpatialReference Dim value As Boolean value = SpatialReference.Compare(aSpatialReference, otherSpatialReference) |
C# | |
---|---|
public static bool Compare( SpatialReference aSpatialReference, SpatialReference otherSpatialReference ) |
Parameters
- aSpatialReference
- First spatial reference to compare.
- otherSpatialReference
- Second spatial reference to compare.
Return Value
True if same definitions or the same IDs, false if different. The two spatial references must have the same coordinate system ID, or alternatively, the same string for the coordinate system definition. This method will not convert between ID and definition string. Therefore if the spatial references are the same except one is specified using ID and the other using a definition string, this method will not find them to be the same.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family