Skip to main content
Solved

NeighborFinder

  • April 29, 2025
  • 2 replies
  • 74 views

fme_can_do_it
Enthusiast
Forum|alt.badge.img+12

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.

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

fme_can_do_it
Enthusiast
Forum|alt.badge.img+12
  • 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
Celebrity
  • 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.