Skip to main content
Question

Finding distances between buildings using neighborfinder?

  • May 18, 2021
  • 1 reply
  • 7 views

mcgregrr
Contributor
Forum|alt.badge.img+1

I have a 2D polygon shapefile representing buildings. I want to determine the distance to and from each building. I have tested the neighborfinder and think that may be strategy however I tested one building as the candidate and all other buildings as the base. However I do not want to create separate building polygons to use and rerun the transformer a couple hundred times. Is there a way to use the full building set as both the candidate and base?

1 reply

nielsgerrits
VIP
Forum|alt.badge.img+54
  • Set it to Candidates Only and feed all buildings as Candidates.
  • Set NeighborFinder to generate Close Candidates list.
  • Put a ListExploder downstream the NeighborFinder.
  • Use two VertexCreators to draw the lines using closest_base_x/closest_base_y and closest_candidate_x/closest_candidate_y.
  • Use a Matcher to remove duplicates. (From-to is the same as to-from.)

 


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