Skip to main content
Solved

Finding the Maximum Entities

  • June 13, 2021
  • 2 replies
  • 9 views

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.

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.

2 replies

gazza
Contributor
Forum|alt.badge.img+6
  • Contributor
  • 132 replies
  • 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
  • 39 replies
  • 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.

Thanks!

I know it will be simple..