This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReference2 Interface > ISpatialReference2.ApplyXYPrecision Method (ArcObjects .NET 10.5 SDK) |
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
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.
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.