Skip to main content
Solved

Finding the N largest values in an attribute table

  • May 27, 2013
  • 3 replies
  • 25 views

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

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+21
  • 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.