Skip to main content
Solved

Finding the N largest values in an attribute table


Hi

 

 

I have a shp file with a numeric attribute.  I can sort the attribute table on this attribute using a Sorter, but how can I then filter out only the top, say, 1000 features?

 

 

Thanks

 

 

Dag

Best answer by fmelizard

Hi,

 

 

Sorter + Sampler should do the job.
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

3 replies

david_r
Celebrity
  • May 27, 2013
Hi Dag,

 

 

I would use a Sorter, then a Counter to assign each feature their ranking, then using a Tester to exclude those with a ranking > the number of features desired.

 

 

David

fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • Best Answer
  • May 27, 2013
Hi,

 

 

Sorter + Sampler should do the job.

david_r
Celebrity
  • May 27, 2013
Good call about the Sampler, Itay.

 

 

I agree it is more elegant than the Counter + Tester combination.

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