Skip to main content
Solved

NeighborFinder


fme_can_do_it
Enthusiast
Forum|alt.badge.img+9

Hi. I am using neighborFinder to align the points to the closest line segment. Points are connected to the Base, and lines are Candidates. I have also merged candidate Attributes. I am trying to join the Line segment from NeigborFinder with the original line dataset to get the closest line, but I am getting point geometry. is there a way to retrieve the line segment from the neighborFinder output? Thanks!

Best answer by takashi

Hi ​@fme_can_do_it ,

If you need to find line features that are close to a Base point found by the NeighborFinder, a quick way I can think of is:

  1. Counter: Add sequential number as temporary ID attribute to the Candidate line features before the NeighborFinder, if they didn't have unique ID attribute.
  2. FeatureJoiner: Send the features output from the UnmatchedCandedate port of the NeighborFinder to the Left port, send the original line features to the Right port, and join them on ID. Then, line features that were close to a MathcedBase point will be output from the UnjoinedRight port.

Hope this helps.

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

2 replies

fme_can_do_it
Enthusiast
Forum|alt.badge.img+9
  • Author
  • Enthusiast
  • April 29, 2025

For now, I used Attribute Keeper to retain only the line attribute from NeighborFinder's output. Then, I created a buffer of 0.5 feet around these points and used a Spatial Filter to select the intersecting line.I this gives me the line between the points. Still looking for a better solution


takashi
Influencer
  • Best Answer
  • April 29, 2025

Hi ​@fme_can_do_it ,

If you need to find line features that are close to a Base point found by the NeighborFinder, a quick way I can think of is:

  1. Counter: Add sequential number as temporary ID attribute to the Candidate line features before the NeighborFinder, if they didn't have unique ID attribute.
  2. FeatureJoiner: Send the features output from the UnmatchedCandedate port of the NeighborFinder to the Left port, send the original line features to the Right port, and join them on ID. Then, line features that were close to a MathcedBase point will be output from the UnjoinedRight port.

Hope this helps.


Reply


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