Skip to main content
Question

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


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

3 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • January 19, 2018

Hi @pedro

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

Thanks,

Danilo


danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • January 19, 2018
danilo_fme wrote:

Hi @pedro

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

Thanks,

Danilo

 

Option Group By = Nom

 


takashi
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 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.


Reply


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