Skip to main content
Question

NeighborFinder list of distance


gberdoz
Participant
Forum|alt.badge.img

Hi,

I’m on the version 2024 of FME Workbench, I have to calculate a number of neighbor between points (let’s say 5) in a distance (of 20 for example).

But the issue is that I don’t know how to export the 5 distances in specific attributes…

If someone can help me I’d love that !

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

I think you want to convert the result from the NeighborFinder, which is probably a list, to attributes?

The question is, how do you want the result look like. One way to do this is to concatenate the results of the listelements into one attribute. ListConcatenator can do this.

Another way is to do this manually, using an AttributeCreator, create an attribute with name ClosestPoint0 and a value of _closest_candidates_list{0}.PointId.

An alternative is to explode the list into features and handle it that way. ListExploder.

Attached a sample workspace demonstrating some of this.

 


mark2atsafe
Safer
Forum|alt.badge.img+45

To add to @nielsgerrits answer, there is also a Hub transformer called the ListBreaker that will convert a list of values into separate attributes. If handling the list is the source of the problem, this may be another solution.


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