Skip to main content
Question

Using ShortestPathFinder

  • June 13, 2025
  • 1 reply
  • 49 views

gbcfgeo2025
Contributor
Forum|alt.badge.img+3

I have this line (the green one):
 

And I want to calculate the shortest path from the start of the line to its end across the network (the violet one).

How can I do it?

What is it the right way to do it? How can I set the parameters of the “ShortestPathFinder”?

attached files!
Tnks

 

1 reply

DanAtSafe
Safer
Forum|alt.badge.img+20
  • Safer
  • June 13, 2025

Hi ​@gbcfgeo2025 The default parameters of the ShortestPathFinder will do just fine; but to get it to work you’ll need a properly noded network, which means nodes in the network which align with the ends of the From-To line(s).  I’ve used a Chopper and a PointOnLineOverlayer to do that, but you could also use an Intersector, TopologyBuilder, etc.