Skip to main content
Best Answer

ListBasedFeatureMerger with list as Supplier key ?

  • July 16, 2019
  • 2 replies
  • 30 views

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

Best answer by ebygomm

Take a look at the custom transformer - ListCombiner

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

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.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • July 16, 2019

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 !