Question

Connecting Points with No Order


Badge

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

Userlevel 4
Badge +13

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'.

Badge

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.

 

 

Reply