I am trying to find a solution to a slightly complex problem.
I have a shapefile of polylines (bus routes) that have been drawn and the vertices/points follow the direction of the bus path (ie if a bus goes from downtown to the suburbs, the lines vertices start in downtown and the last vertices ends in the suburbs). I need to split the lines based on a point file to insert the stops in between and to create segments of the original route between the stops. Each stop has its own unique ID.
Now I have no problem batch splitting the lines or even getting the stop id to the end and beginning of each newly created segment.
I need to find a way to auto sequence the new segments that were split from the original whole route, preferably by creating a new field that would contain the sequential value of the lines based on the order/direction from the original line.
I have 75 routes and several thousand stops, so the most efficient way is to find some way to automate it. Maybe a script could achieve this solution?
Clinton
I have a shapefile of polylines (bus routes) that have been drawn and the vertices/points follow the direction of the bus path (ie if a bus goes from downtown to the suburbs, the lines vertices start in downtown and the last vertices ends in the suburbs). I need to split the lines based on a point file to insert the stops in between and to create segments of the original route between the stops. Each stop has its own unique ID.
Now I have no problem batch splitting the lines or even getting the stop id to the end and beginning of each newly created segment.
I need to find a way to auto sequence the new segments that were split from the original whole route, preferably by creating a new field that would contain the sequential value of the lines based on the order/direction from the original line.
I have 75 routes and several thousand stops, so the most efficient way is to find some way to automate it. Maybe a script could achieve this solution?
Clinton