Skip to main content
Solved

What's the most efficient way to create a mesh of flow paths/lines?


jacklonsdale
Contributor
Forum|alt.badge.img+4

Hi all,

 

I'm looking for the optimal way to create a 'mesh' of potential flow paths to use with the ShortestPathFinder. Currently I feed my workspace a polygon of interest, then to a point cloud of required spacing. Turn that into individual points and then connect them up in the 8 points of the compass using a NeighbourFinder/ListExploder/VertexCreator.

 

My query with this is at the end I have to use the Matcher to remove lots of geometric duplicates where point A has connected to point B, and point B has connected to point A. Line direction is irrelevant to this task so I was wondering if anyone has any ideas as to how I could optimise this process?

Best answer by geomancer

You only need the neighbors in the directions 0, 45, 90 and 135, this will get you all connecting lines once. Insert a ListElementFilter (from FME Hub) between the NeighborFinder and the ListExploder.

ListElementFilterDisclaimer: this is a solution with only a minor change to your current workflow, there may be better ways.

View original
Did this help you find an answer to your question?

2 replies

geomancer
Evangelist
Forum|alt.badge.img+47
  • Evangelist
  • Best Answer
  • March 16, 2023

You only need the neighbors in the directions 0, 45, 90 and 135, this will get you all connecting lines once. Insert a ListElementFilter (from FME Hub) between the NeighborFinder and the ListExploder.

ListElementFilterDisclaimer: this is a solution with only a minor change to your current workflow, there may be better ways.


jacklonsdale
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • March 16, 2023
geomancer wrote:

You only need the neighbors in the directions 0, 45, 90 and 135, this will get you all connecting lines once. Insert a ListElementFilter (from FME Hub) between the NeighborFinder and the ListExploder.

ListElementFilterDisclaimer: this is a solution with only a minor change to your current workflow, there may be better ways.

Perfect solution to my existing workflow - thanks!


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