Skip to main content
Question

Shortest Path Finder Issue - No Route Inconsistency

  • August 1, 2019
  • 10 replies
  • 25 views

ebygomm
Influencer
Forum|alt.badge.img+44

Has anyone ever encountered an issue where the ShortestPathFinder fails to find a route when multiple From-To Lines enter the transformer but with no issue when the same single From-To Line is considered in isolation - never encountered this before and not sure how I can resolve it...

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

10 replies

bkgg
Contributor
Forum|alt.badge.img+6
  • Contributor
  • 10 replies
  • August 1, 2019

I tried a slightly modified version of Safe's example of how to use the shortestpathfinder. I found that when I used two 'From- to' inputs that were identical, that there were no problems but when I slightly modified the coordinates, it would only accept one of the two. This was resolved by cranking up the From-to network snapping but I don't know if that's an option for you.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Author
  • Influencer
  • 3427 replies
  • August 1, 2019

I tried a slightly modified version of Safe's example of how to use the shortestpathfinder. I found that when I used two 'From- to' inputs that were identical, that there were no problems but when I slightly modified the coordinates, it would only accept one of the two. This was resolved by cranking up the From-to network snapping but I don't know if that's an option for you.

If you modified the coordinates then it makes sense that they would no longer route if they weren't snapped to the network.

 

I send the exact same line in on it's own and a shortest path is found. If i send the exact same line in with 1679 other lines, the original line exits the no path port.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Author
  • Influencer
  • 3427 replies
  • August 1, 2019

I managed to isolate the two routes that were 'conflicting', the features were adjacent to each other in the order they entered the transformer

The end point of one was the start point of the second.

Setting the Allow U-Turns parameter to 'No' and keeping the original order resulted in one feature from the shortest path port and one feature from the no route port.

Setting the Allow U-Turns parameter to 'No' but reversing the order of the from-to lines entering the transformer resulted in both shortest paths being generated

Setting the Allow U-Turns parameter to 'Yes' resulted in both shortest paths being generated irrespective of order

 

I've not been able to create the same issue with a simpler network that i can share unfortunately but it looks like the process for determining u turns is not considering a from-to line in isolation?


fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • August 2, 2019

Hi @egomm I've reproduced the problem and have now filed FMEENGINE-61035. If two From-To lines are in feature order AND the last vertex of the first is the same as the first vertex of the second AND the paths that would be created overlap where the lines meet AND U-turns are not allowed THEN the second From-To line comes out of the NoPath port. I think you've accidentally found a needle in a haystack. ;)


ebygomm
Influencer
Forum|alt.badge.img+44
  • Author
  • Influencer
  • 3427 replies
  • August 2, 2019

Hi @egomm I've reproduced the problem and have now filed FMEENGINE-61035. If two From-To lines are in feature order AND the last vertex of the first is the same as the first vertex of the second AND the paths that would be created overlap where the lines meet AND U-turns are not allowed THEN the second From-To line comes out of the NoPath port. I think you've accidentally found a needle in a haystack. ;)

Thanks, just trying to work out how best to do a test so these features never appear alongside each other as an interim measure.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Author
  • Influencer
  • 3427 replies
  • August 9, 2019

Thanks, just trying to work out how best to do a test so these features never appear alongside each other as an interim measure.

Ended up putting the no route through a second shortest path finder.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Author
  • Influencer
  • 3427 replies
  • November 13, 2019

Hi @egomm I've reproduced the problem and have now filed FMEENGINE-61035. If two From-To lines are in feature order AND the last vertex of the first is the same as the first vertex of the second AND the paths that would be created overlap where the lines meet AND U-turns are not allowed THEN the second From-To line comes out of the NoPath port. I think you've accidentally found a needle in a haystack. ;)

Arrggghhh - found another needle. Shortest path is not always the shortest path. Different shortest paths are obtained when a feature is fed through in isolation. Suspect it's the same issue but somewhat harder to identify and resolve


fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • November 14, 2019

Arrggghhh - found another needle. Shortest path is not always the shortest path. Different shortest paths are obtained when a feature is fed through in isolation. Suspect it's the same issue but somewhat harder to identify and resolve

Hi @ebygomm Please send us another repro if you can. Thanks!


ebygomm
Influencer
Forum|alt.badge.img+44
  • Author
  • Influencer
  • 3427 replies
  • November 15, 2019

Hi @ebygomm Please send us another repro if you can. Thanks!

I'll see what I can do


fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • November 29, 2019

Arrggghhh - found another needle. Shortest path is not always the shortest path. Different shortest paths are obtained when a feature is fed through in isolation. Suspect it's the same issue but somewhat harder to identify and resolve

This problem (FMEENGINE-61035) is now fixed in the latest FME 2020 betas.