Compares two SpatialReferences for identical values for coordinate system and datum transformation.
Syntax
Parameters
- aSpatialReferernce
- otherSpatialReference
Return Value
Boolean value that is true for equality, false for unequality.
Example
The following example tests whether a MapView and the MapService from which the MapView derives have the same SpatialReference. This would indicate whether the MapView's coordinate system or datum transformation values have been changed since being created from the MapService. The code assumes an existing MapView object.
C# | Copy Code |
---|
bool areSameSpatialRef =
ESRI.ArcGIS.ADF.IMS.SpatialReference.SpatialReference.Compare(
mapView.SpatialReference,
mapView.MapService.ServiceSpatialReference); |
Visual Basic | Copy Code |
---|
Dim areSameSpatialRef As Boolean =
ESRI.ArcGIS.ADF.IMS.SpatialReference.SpatialReference.Compare(
mapView.SpatialReference,
mapView.MapService.ServiceSpatialReference); |
Remarks
Requirements
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
See Also