ESRI.ArcGIS.ADF.Web
Compare(SpatialReference,SpatialReference) Method
See Also 
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.
Compares two SpatialReference objects for equal values.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function Compare( _
   ByVal aSpatialReference As SpatialReference, _
   ByVal otherSpatialReference As SpatialReference _
) As Boolean
Visual Basic (Usage)Copy Code
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.

Remarks

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.

See Also

© 2010 All Rights Reserved.