Skip to main content
Question

Finding Rail Routes between two stations

  • December 4, 2024
  • 5 replies
  • 63 views

georgeblake270
Contributor
Forum|alt.badge.img+2

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.

5 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

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)


geomancer
Evangelist
Forum|alt.badge.img+47
  • Evangelist
  • December 4, 2024

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.


nielsgerrits
VIP
Forum|alt.badge.img+54

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.


georgeblake270
Contributor
Forum|alt.badge.img+2

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?

 

 


nielsgerrits
VIP
Forum|alt.badge.img+54

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings