Hey Fellows,
I have added stops by using code and I got the route and saved it to layer. Now I want to get points in the order of start to end from that layer...
I checked the generated route layer in arcmap looking for attribute table and it shows one row and shape field as polylineM ....
Please Guide me ....
Route from a-b . point at a , point next to a towards b along the generated route ++++ till , point at b....
I'm using 9.3
I have added stops by using code and I got the route and saved it to layer. Now I want to get points in the order of start to end from that layer...
I checked the generated route layer in arcmap looking for attribute table and it shows one row and shape field as polylineM ....
Please Guide me ....
Route from a-b . point at a , point next to a towards b along the generated route ++++ till , point at b....
I'm using 9.3
You have a couple of options, depending on the reasons you have for wanting intermediate points. If, for example, you just need all of the vertices of the route, in order to feed the points into another application, then see the following post:
Convert Lines to Points
There you get guidance on programmatically iterating over the vertices of a polyline.
If, however, you are interested in which network elements were traversed and the cost of travel during the routes at the point those elements were traversed, then you can generate the "traversal result" for the route. We have an add-in that will automatically generate the traversal result and add it to the table of contents here:
Network analyst Traversal Result Add-In
The code behind that add-in is in the 10.0 SDK and can be downloaded here:
Zip download of traversal result add-in code
Or viewed online here:
C# code for traversal result add-in
I hope one of these options gives you what you were looking for.