Question

Trace partial road using ShortestPathFinder


Badge +6

Hi, I have a road network and a start and end point on the network. The points are not snapped to the network. I would like to snap the points to the network, then trace the path between the start and end points along the network.

I have tried using vertexCreator, followed by Neighborfinder and shortestpathFinder, but no results in the output.

Any suggestions and what would be the considerations to improve performance ?


2 replies

Userlevel 4
Badge +25

The ShortestPathFinder has the option to do From-To node snapping, so if those points are close enough to the network they'll snap to it.

I assume that's what you're trying to do with the NeighborFinder/VertexCreator combo, that should have the same results really. AnchoredSnapper would be another option (using the network as anchor).

Userlevel 1
Badge +10

As well as being snapped to the network, there needs to be a node in the network at the start and end points of your path for the shortest path finder to work. Suggest using a point on line overlayer to split your network prior to sending to the shortest path finder

Reply