Comments and answers for "Shortest Path Finder - Problem 4" https://knowledge.亚搏在线safe.com/questions/47302/shortest-path-finder-problem-4.html The latest comments and answers for the question "Shortest Path Finder - Problem 4" Answer by david_r https://knowledge.safe.com/answers/47335/view.html

Also, remember that the ShortestPathFinder expects the lines to be properly noded, meaning that it won't route over crossing lines unless there's a node at the intersection.You can use the TopologyBuilder if you need to fix that.

Thu, 06 Jul 2017 07:37:07 GMT david_r
Answer by takashi https://knowledge.safe.com/answers/47316/view.html

Hi@gsgoraya, The current ShortestPathFinder (at least in FME 2016.1+) accepts a polyline (i.e.a line having intermediate vertices) as a From-To line, but every vertex of the line has to match a node of the Network (exact match by default, or within a tolerance if you have specified the Snapping Tolerance parameter).

Firstly make sure if every vertex of the From-To line match a network node.

Wed, 05 Jul 2017 23:46:51 GMT takashi
Comment by erik_jan on erik_jan's comment https://knowledge.safe.com/comments/47311/view.html The LineBuilder is called PointConnector in FME 2016.And yes, this example is creating the shortest path between two points, losing the other points.
The ShortestPathFinder transformer is a transformer to find the shortest path between two points using a network of lines.

Wed, 05 Jul 2017 21:52:42 GMT erik_jan
Comment by gsgoraya on gsgoraya's comment https://knowledge.safe.com/comments/47310/view.html Thanks again Erik, I am using 2016.1 version, I do not have line builder transformer.Also If I use the first and last point, the other points will be excluded from the route.

Wed, 05 Jul 2017 21:47:35 GMT gsgoraya
Comment by erik_jan on erik_jan's comment https://knowledge.safe.com/comments/47308/view.html Use only the first and last point of the line like this:


Wed, 05 Jul 2017 21:34:01 GMT erik_jan
Comment by gsgoraya on gsgoraya's answer https://knowledge.safe.com/comments/47306/view.html Thank you Erik for the reply.So what are your ecommendations?

Wed, 05 Jul 2017 21:19:09 GMT gsgoraya
Answer by erik_jan https://knowledge.safe.com/answers/47304/view.html

I believe the From_To is supposed to be a line with just two points (start and end of the Path that is to be calculated).The Network needs to be a set of connected line strings.

IN this case the From_To is a line string with 48 vertices.That might cause the issue.

Wed, 05 Jul 2017 21:11:41 GMT erik_jan