wayneshelley

Network Analyst INAClassLoader2.Locator.SnapTolerance Not Honoured

Discussion created by wayneshelley on Mar 15, 2011
I've been annoyed with this little problem all morning!

I've fixed it, but thought I would share the information!

INAClassLoader2.Locator.SnapTolerance doesn't do anything. You can set it but it doesn't honour it when you run INAClassLoader2.Load

This is used to in many of the Network Analyst samples:
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/0001/0001000001v1000000.htm

The line of code: loader.Locator.SnapTolerance = snapTolerance is not honoured.

TO FIX:
You must set this via the INALocator3.MaxSnapTolerance interface.
e.g.
Dim locator As INALocator3 = loader.Locator
locator.MaxSnapTolerance = 10000

Outcomes