ArcObjects Library Reference (NetworkAnalysis)  

INetworkLoader.SnapTolerance Property

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

Product Availability

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

Remarks

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.

[C#]

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;
[Visual Basic .NET]

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

See Also

INetworkLoader Interface

.NET Related Topics

Creating geometric networks within a geodatabase |