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


ISpatialReference2.ApplyXYPrecision Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReference2 Interface > ISpatialReference2.ApplyXYPrecision Method
ArcGIS Developer Help

ISpatialReference2.ApplyXYPrecision Method

Applies the XY precision.

[Visual Basic .NET]
Public Sub ApplyXYPrecision ( _
    ByVal cPoints As Integer, _
    ByRef Points As WKSPoint _
)
[C#]
public void ApplyXYPrecision (
    int cPoints,
    ref WKSPoint Points
);
[C++]
HRESULT ApplyXYPrecision(
  long cPoints,
  WKSPoint* Points
);
[C++]
Parameters
cPoints 

cPoints is a parameter of type long Points
Points is a parameter of type WKSPoint*

Product Availability

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

Description

The ApplyXYPrecision method snaps XY coordinate values to the spatial reference's coordinate grid. Normally, the geodatabase calls this method when appropriate, however you may need to use it when comparing locally generated coordinates against features coming from a geodatabase.

Remarks

The cPoints value is the number of points to which you wish to apply the XY precision (1/resolution). A WKSPoint is a structure that contains the X and Y values of a coordinate pair.

See Also

ISpatialReference2 Interface