Solved

Finding the Maximum Entities


Badge +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!

icon

Best answer by gazza 14 June 2021, 06:44

View original

2 replies

Badge +5

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.

Badge +5

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..

 

Reply