Skip to main content

Hey guys, stumped with this one:

I’m trying to find the distance of rail tracks between two stations - I’ve got the points for the stations and lines of the railway tracks but I need to find the route between the two stations and measure its distance.

I’ve been able to limit the area but finding the most direct route and not measuring the distance of extra lines coming onto the route.

Thank you in advance, any help is much appreciated.

Have you tried the ShortestPathFinder? You need to feed it a from-to line (connecting your start and end point) and a network, it then fits the line to the network, keeping in account any cost settings you specify (although in your case it sounds like just distance will be enough)


Make sure your line features in your network run from station to station, that they are connected, and that each feature has an attribute containing the length of that feature.

Create an extra feature connecting only your start station and your end station.

Feed the network and the from-to-feature to a ShortestPathFinder. This should find the shortest path, and give you the total length.


Assuming these lines are schematic and not the actual railways, one way to do this is to generate a network from the lines and then find the shortes path using the ShortestPathFinder.


Thank you all for your advice I have used a topology builder, network topology calculator and a ShortestPath finder, however I am only getting a a short amount of railway near the origin point, would anyone know what might be causing that?

 

 


For the network to function, all lines need to be intersected / snapped. Did you made sure there is no gap where it stopped?


Reply