Skip to main content
Solved

Identify maximum value by group and tag feature

  • August 22, 2018
  • 3 replies
  • 197 views

aron
Supporter
Forum|alt.badge.img+16
  • Supporter
  • 135 replies

I have a set of grouped features and want to identify the feature with the highest value in one of the columns, lets call it "MAX_attribute", for each group. I can find the highest value in each group by using the StatisticCalculator. But that only gives me the "MAX_attribute" for the group as an whole, I also need to identify and "tag" the actual feature that had the "MAX_attribute".

To give you an example: I have depth readings for a number of lakes, and now I want to find the deapest reading for each lake.

I also tried the Aggregator with the ListRangeExtractor but could not make it work as I wished.

Best answer by ebygomm

If this is from your earlier scenario, you can create a list in the dissolver. Sorting this list in descending order will mean you can access the feature with the highest attribute

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

takashi
Celebrity
  • 7842 replies
  • August 22, 2018

Hi @aron, I think the features output from the Complete port of the StatisticsCalculater have you desired attributes.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • Best Answer
  • August 22, 2018

If this is from your earlier scenario, you can create a list in the dissolver. Sorting this list in descending order will mean you can access the feature with the highest attribute


aron
Supporter
Forum|alt.badge.img+16
  • Author
  • Supporter
  • 135 replies
  • August 24, 2018

If this is from your earlier scenario, you can create a list in the dissolver. Sorting this list in descending order will mean you can access the feature with the highest attribute

Thanks! I got this to work for me!