Skip to main content
Solved

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

  • March 16, 2023
  • 2 replies
  • 36 views

jacklonsdale
Contributor
Forum|alt.badge.img+5

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.

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.

2 replies

geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • 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+5
  • Author
  • Contributor
  • 30 replies
  • 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.

Perfect solution to my existing workflow - thanks!