I'm using ArcGis 10 with SP3. I'm trying to configure a network analyst service using ArcMap. I've created a geodatabase, and configured a network dataset.
I drag&dropped my dataset into the map, and I am able to visualize the segments and the junctions. Then I created a new route, and placed 2 stops.
But when I try to calculate the route, it is not correct. Something is calculated, but the route goes not from my first stop to my second stop.
I've found, that if open the network analyst/options, 2nd tab, and I check the first checkbox (snapp to network, or should be something like this in english), then the problem is not exactly the same : When I click on the map in order to place a stop, it is not located where I click, but somewhere else in the network. But then, when I calculate the route, it goes from start to end exactly (but not where I clicked.)
- You will find a screenshot ss attachment -
Can somebody give me some advises please ? I don't really understand what I missed. Many thanks, Guillaume.
It could be a problem with the spatial reference or spatia index, etc. What is the coordinate system of the data and units? What is the format of the data: shape file or geodatabase? If you use regular Identify and Select tools, do they work correctly? Also, is the street data in polylineZ or 3d format? You can open the attribute table and see in the shape column if it is 3d or not. Jay Sandhu
The problem is the polylineZ. Arcmap returns back a 2-d coordinate on the screen where you clicked and Z is 0. Since it is trying to locate that on a real 3-d line it finds one with a "lower" elevation closer to it. So that is why it appears to locate somewhere else. For 10.1 we have changed this behavior to make a better decision on where to locate. In the meantime, workarounds in 10.0 SP3: Change/convert your input street data to 2D by dropping the Z coordinate and rebuild your network. Or, Use real 3D point coordinates in a feature class and then use the AddLocation tool to add them to the route layer as stops. Jay Sandhu