Skip to main content

Hi all,

I have used Matcher to find duplicates. It works very well. I create "_match_id" attribute to create "small groups".

The problem is there, I need now to sort into these "small groups" using an other attribute called "Hierarchy" (numeric attribute). The feature with bigger Hierarchy's attribute value into this small group (based on _match_id value) will have a red color, the other will have a blue color.

So, I have to compare each value into this small group, keep the highest value and assign to this feature red color.

I have to do this for every small groups.

Any ideas ?

Thanks

Hi @arka, do you have any example data that you can share? Screenshots can be super useful.

 


Hi @arka, if I understand the requirement correctly, this workflow might help you.

  1. Sorter: Sort the Matched features by "Hierarchy", numeric descending.

  2. Sampler (Group By: _match_id, Sampling Rate (N): 1, Sampling Type: First N Features): Sample the first (i.e. highest Hierarchy) feature for each group.

  3. FeatureColorSetter x 2: Set red color to the features output from the Sampled port, set blue color to the features output from the NotSampled port of the Sampler above.

Hi @takashi. Thank you for your supply, it works very well.


Reply