Skip to main content
Question

Matcher how to get ObjectID of matched feature as value of new attribute

  • March 24, 2026
  • 1 reply
  • 13 views

jugoslaviaa
Enthusiast
Forum|alt.badge.img+6

 

Hi,

I am using the Matcher transformer to find pairs of features with the same attribute value.

Now I want to create a new attribute rel_obj that stores the ObjectID of the other feature in the matched pair as in the image. 

What is the best way to implement this in FME?

Thanks 

1 reply

jugoslaviaa
Enthusiast
Forum|alt.badge.img+6
  • Author
  • Enthusiast
  • March 24, 2026

Now , I solved it like this:
I used the Aggregator to aggregate features and concatane the OBJECTID values with a comma and then joined the data with itself based on MATCHID.
After the join, I split the concatenated OBJECTID field, which is a list.
I then compared the elements of the list if an element is different from the current OBJECTID, I assigned that value to REL_OBJ.