Skip to main content

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

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