Skip to main content
Solved

Finding the Maximum Entities


dor1411993
Contributor
Forum|alt.badge.img+5

Hey

I have a question that I am awkward with not much time.

I have entities after an aggregator, I need to pull out the entity with the maximum Z point.

For example here in the screenshot:

 

צילום מסך 2021-06-14 003826Between rows 1 and 2, which is the same manholenum, I need to pull out row 2, because it is higher.

And so on, between rows 3 and 4, you need to pull out the 4.

There is no legality, because the manhole will be different later, or as in line 10, there will be only one.

Would appreciate help!

Thanks!

Best answer by gazza

There are a number of ways to do this, one is to first use a Sorter which sorts by both ManholeNum and _z, with _z being sorted in descending order. Then go into a Sampler which passes the first feature, with Group Processing set to use ManholeNum and Group By Mode to Process when Group Changes.

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

2 replies

gazza
Contributor
Forum|alt.badge.img+6
  • Contributor
  • Best Answer
  • June 14, 2021

There are a number of ways to do this, one is to first use a Sorter which sorts by both ManholeNum and _z, with _z being sorted in descending order. Then go into a Sampler which passes the first feature, with Group Processing set to use ManholeNum and Group By Mode to Process when Group Changes.


dor1411993
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • June 14, 2021
gazza wrote:

There are a number of ways to do this, one is to first use a Sorter which sorts by both ManholeNum and _z, with _z being sorted in descending order. Then go into a Sampler which passes the first feature, with Group Processing set to use ManholeNum and Group By Mode to Process when Group Changes.

Thanks!

I know it will be simple..

 


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