Question

How to compare attributes come from 2 feature list

  • 1 October 2018
  • 1 reply
  • 2 views

After use some transformer: PointOnAreaOverlayer and NeighbourFinder, I have 2 feature list with a attribute Name.

Then I need to combine these 2 feature:

- If Name in list 2 already exist in list 1 then set it = 0

- If not then do no change.

So please help me: which transformer I can use to compare 2 feature list?

I try with Tester but don't know how to look up in the all array.

And Matcher will merge the 2 feature which I don't want.

Thanks,


1 reply

Badge +22

Simplest way would probably be to unconditionally merge the list2 (requestor) and list1 feature (supplier) feature, explode list 2 (ListExploder), ListSearcher (List1, name), on the found port Name = 0 (attributeCreator), ListCombiner to rebuild list2.

Reply