This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReference2 Interface > ISpatialReference2.ApplyPrecision Method (ArcObjects .NET 10.4 SDK) |
Applies the measure and z value precisions.
[Visual Basic .NET] Public Sub ApplyPrecision ( _ ByVal cPoints As Integer, _ ByRef Points As WKSPoint, _ ByRef ms As Double, _ ByRef zs As Double _ )
[C#] public void ApplyPrecision ( int cPoints, ref WKSPoint Points, ref double ms, ref double zs );
[C++]
HRESULT ApplyPrecision(
long cPoints,
_WKSPoint* Points,
double* ms,
double* zs
);
[C++]
Parameters cPoints cPoints is a parameter of type long Points
Points is a parameter of type _WKSPoint ms ms is a parameter of type double zs zs is a parameter of type double
The ApplyPrecision method snaps measure or z values to the spatial reference grid. Each SpatialReference has an extent and a resolution (1/precision) for the xy, z, and measure values. You can set this information with the SetZDomain, SetMDomain, SetZFalseOriginAndUnits or the SetMFalseOriginAndUnits methods. If you use a Domain method, the resolution (1/precision) is calculated from the given extent. The FalseOriginAndUnits methods sets the lower bound of the extent and explicitly defines the precision (units, or 1/resolution) of the spatial reference.