Skip to main content
Solved

Matcher and match_id further selection

  • March 21, 2018
  • 3 replies
  • 21 views

Forum|alt.badge.img

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

Best answer by takashi

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.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • March 21, 2018
Hi @arka, do you have any example data that you can share? Screenshots can be super useful.

 


takashi
Celebrity
  • 7843 replies
  • Best Answer
  • March 22, 2018

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.

Forum|alt.badge.img
  • Author
  • 15 replies
  • March 22, 2018

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