Skip to main content
Solved

Choosing minimum and maximum points

  • May 9, 2017
  • 4 replies
  • 208 views

Hello everyone,

I have probably really easy question, yet I struggle to find a anwser I need online. I'm working on a large set of points (about 18k), and I need to find and use in further work points with minimum and maximum X coordinate value.

I have used Coordinate Extractor to have and easy access to X values, then tried to use Statistic Calucator to find min and max, then use Tester, however it didn't work for me.

Is there any other way to do this quite easy?

Best answer by jdh

@david_r's answer will work, or alternatively use a BoundsExtractor after the BoundingBoxAccumulator.

If you would like to preserver the individual points while still obtaining the min/max values, use an aggregator, boundsExtractor, and then a deaggregator.

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.

4 replies

david_r
Celebrity
  • May 9, 2017

Try the BoundingBoxAccumulator, you can then use the CoordinateExtractor on the resulting polygon.


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • Best Answer
  • May 9, 2017

@david_r's answer will work, or alternatively use a BoundsExtractor after the BoundingBoxAccumulator.

If you would like to preserver the individual points while still obtaining the min/max values, use an aggregator, boundsExtractor, and then a deaggregator.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • May 9, 2017

you can also use a sorter + sampler after the extractor to select the point with max and by sorting the other way around the min values.


  • Author
  • May 9, 2017

@david_r @jdh @itay

 

Thank you guys so much! All anwsers are more than great, everything is working now