This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalysis > ESRI.ArcGIS.NetworkAnalysis > Interfaces > IN > INetworkLoader Interface > INetworkLoader.SnapTolerance Property (ArcObjects .NET 10.5 SDK) |
Snap tolerance to be used in creating the new geometric network.
[Visual Basic .NET]
Public WriteOnly Property SnapTolerance
[C#] public void SnapTolerance {set;}
[C++]
HRESULT put_SnapTolerance(
double
);
[C++]
Parameters [in] is a parameter of type double
The SnapTolerance controls the search distance used for establishing connectivity during the network building process. The snap tolerance is specified in map units.
It is best to check to make sure that the snap tolerance you propose is not less than the minimum snap tolerance in the INetworkLoader2::MinSnapTolerance parameter.
The following code shows you how to specify your snap tolerance as the value in the Double variable mySnapTol.
if (mySnapTol < networkLoader2.MinSnapTolerance)
{
Console.WriteLine("The proposed snap tolerance " + mySnapTol +
" is less than the minimum snap tolerance of " +
networkLoader2.MinSnapTolerance + " for this feature dataset.");
return;
}
networkLoader2.SnapTolerance=mySnapTol;
The following code shows you how to specify your snap tolerance as the value in the Double variable mySnapTol.
If mySnapTol < networkLoader2.MinSnapTolerance Then
Console.WriteLine("The proposed snap tolerance " & mySnapTol & _
" is less than the minimum snap tolerance of " & _
networkLoader2.MinSnapTolerance & " for this feature dataset.")
Exit Sub
End If
networkLoader2.SnapTolerance=mySnapTol