Skip to main content
Question

How to extract in a shape the largest polygon each time an attribute changes value ?

  • January 19, 2018
  • 3 replies
  • 19 views

Exemple

 

nom surface

 

2 15

 

2 20

 

4 60

 

4 30

 

6 15

 

6 30

 

6 20

 

 

Result

 

Nom surface

 

2 20

 

4 60

 

6 30
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

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • January 19, 2018

Hi @pedro

You can use the transformer StatisticCalculator to extract the max value:

Thanks,

Danilo


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • January 19, 2018

Hi @pedro

You can use the transformer StatisticCalculator to extract the max value:

Thanks,

Danilo

 

Option Group By = Nom

 


takashi
Celebrity
  • 7843 replies
  • January 20, 2018

Hi @pedro, alternatively, if the attribute 'surface' stores the area of the polygon, you can sort the features by 'surface' descending with the Sorter and then sample the first feature for each 'nom' group with the Sampler (Group By: nom, Sampling Rate (N): 1, Sampliing Type: First N Features). The DuplicateFilter (Key Attributes: nom) can also be used instead of the Sampler.