Skip to main content
Question

Connecting Points with No Order


cwarren
Forum|alt.badge.img

I have a set of points that have no order of collection and I need to connect them together to form a polyline. I have been working with the neighbor finder transformer, but having some issues coming up with the best way to have them drawn correctly. I'm thinking I might need to designate a start point and then remove each point from a list that was previously used to connect?

 

 

What I would like to achieve is one polyline connected from PT4 - PT1 - PT3 - PT2. Any ideas on a good way to achieve this result? The example below is just a sample, as the full job would contain hundreds of points that need connecting and are all out of order, so I can't use the line builder.

2 replies

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • July 30, 2018

order-points.fmw Hi @madwarren You'll need a LineBuilder to create the From-To line for the ShortestPathFinder. You won't need a Network. Set the 'Cost Type' to 'By Straight Line Distance (No Network)' and under 'Optimization Options' set 'Reorder From-To Line' to 'All Points'.


cwarren
Forum|alt.badge.img
  • Author
  • July 31, 2018
fmelizard wrote:

order-points.fmw Hi @madwarren You'll need a LineBuilder to create the From-To line for the ShortestPathFinder. You won't need a Network. Set the 'Cost Type' to 'By Straight Line Distance (No Network)' and under 'Optimization Options' set 'Reorder From-To Line' to 'All Points'.

Thank you @DanAtSafe. I will experiment with this some more and try to get the desired result.

 

 


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