Skip to main content

Hello,

I'm trying to find an elegant solution for a feature merge based on the same list, twice.

So, data is a shapefile with polygons as features. Each polygon have a _class{}.ID list. The goal is to compare each _class{n}.ID to other polygons (not itself) _class{n}.ID (nmax is different for each polygon), to finally agglomerate their geometry.

Issue is that ListBasedFeatureMerger takes attributes as supplier key and not lists.

Example:

NAME

 

_class{0}.ID

 

_class{1}.ID

 

_class{2}.ID

 

Oscar

 

27

 

92

 

1

 

Tango

 

1

 

 

 

Charlie

 

<Missing>

 

<Missing>

 

<Missing>

 

Golf

 

22

 

12

 

 

Whiskey

 

92

 

 

 

Hotel

 

137

 

4

 

6

 

 

So here, Oscar, Tango and Whiskey would be agglomerated.

How could that be done ?

Thanks

Take a look at the custom transformer - ListCombiner

This will assign a common group value to all attributes that share values in a list


Take a look at the custom transformer - ListCombiner

This will assign a common group value to all attributes that share values in a list

Thanks, it worked exactly as intended !


Reply