I have a shapefile with transportation lines and another file with all bus stops along each line (with an attribute which links stops with specific lines to which they belong).
I need to calculate line-specific order numbers for all stops - 1 being first stop from which the bus departs, 2 second stop, etc.
The shapefile containing stops contains duplicates of every physical stop depending on how many bus lines are using it (each of these duplicates have different "line" attribute number).
Any suggestions for how to calculate the new "stop sequence" attribute for all stops?
Open Source tools would be preferable.