This document is archived and information here might be outdated.  Recommended version.


ISpatialReference2.IsZPrecisionEqual Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

ISpatialReference2.IsZPrecisionEqual Method

Returns true if the Z precisions of the two spatial references are the same.

[Visual Basic .NET]
Public Function IsZPrecisionEqual ( _
    ByVal otherSR As ISpatialReference _
) As Boolean
[C#]
public bool IsZPrecisionEqual (
    ISpatialReference otherSR
);
[C++]
HRESULT IsZPrecisionEqual(
  ISpatialReference* otherSR,
  VARIANT_BOOL* IsZPrecisionEqual
);
[C++]

Parameters otherSR [in]
otherSR is a parameter of type ISpatialReference IsZPrecisionEqual [out, retval] IsZPrecisionEqual is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Compares the Z precisions (resolutions). Both srs must be of the same type (both GCS, both PCS, etc).

Remarks

The IClone::IsEqual method for PCSs and GCSs compares only the projection information (projection, spheroid, projected units, etc.). It does not compare any properties related to the coordinate grid definition for the spatial references.

 

Use the ISpatialReference2.IsXY/Z/MPrecisionEqual methods to compare coordinate grid information.


Use the ISpatialReferenceTolerance.IsXY/Z/MToleranceEqual methods to compare the various cluster tolerances for the spatial references.

See Also

ISpatialReference2 Interface