Skip to main content
Question

Using Neighbor Finder with condition (neighbor's attribute value > point's attribute value)

  • September 5, 2017
  • 1 reply
  • 157 views

Hi all,

I have a point feature class with an attribute of "Maximum Value". For each point I am trying to find the distance to the closest point that has a higher "Maximum Value".

I can easily use the NeighborFinder to find the closest point if I didn't want to use this condition. I am having trouble integrating comparing attribute values with finding the closest neighbor. I tried looping through a custom transformer, but the fact that it is a blocking transformer is throwing me off there.

I hope the collective FME hive can help!

Thanks,

Isolde

1 reply

david_r
Celebrity
  • September 5, 2017

You can use the Generate list-function of the NeighborFinder to get a list of candidates which you can filter further on:

For example, there is the ListElementFilter (FME Hub) which can filter your candidate list based on a criteria. After, you could also consider using the ListSorter next to "bubble" the desired candidate to the top and access it using the ListIndexer with index 0.


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