Question

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

  • 5 September 2017
  • 1 reply
  • 25 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

Userlevel 4

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