Skip to main content
Solved

Identify maximum value by group and tag feature


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

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

View original
Did this help you find an answer to your question?

3 replies

takashi
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 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+31
  • Influencer
  • 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
  • August 24, 2018
ebygomm wrote:

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!

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings