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


ISpatialReferenceTolerance.XYToleranceValid Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

ISpatialReferenceTolerance.XYToleranceValid Property

Returns esriSRToleranceOK if the XY tolerance is well defined (not NaN) and >= the minimum XY tolerance.

[Visual Basic .NET]
Public ReadOnly Property XYToleranceValid As esriSRToleranceEnum
[C#]
public esriSRToleranceEnum XYToleranceValid {get;}
[C++]
HRESULT get_XYToleranceValid(
  esriSRToleranceEnum* isValid
);
[C++]

Parameters isValid [out, retval]
isValid is a parameter of type esriSRToleranceEnum

Product Availability

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

Errors Returned

The XYToleranceValid property determines if the current XY tolerance associated with the spatial reference is valid.  A XY Tolerance is considered valid when it is well defined (not NaN) and the XY tolerance is greater than or equal to the minimum XY tolerance. The minimum allowable XYTolerance is 2.0/xyUnits. 

To ensure that the XTolerance specified is valid, call XYToleranceValid after calling ISpatialReferenceTolerance::XYTolerance.

Remarks

The xy grid resolution of a spatial reference can be altered independantly of the XYTolerance. Use this method to ensure that the current XYTolerance is defined and not less than the minimum legal value (2.0 * XYResolution).

See Also

ISpatialReferenceTolerance Interface