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


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

ISpatialReference2.ApplyPrecision Method

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,
  System.Double* ms,
  System.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*

Product Availability

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

Description

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.

See Also

ISpatialReference2 Interface