ArcObjects Library Reference (Geometry)  

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