Skip to main content
Solved

How to retrieve list with dissolver

  • November 26, 2013
  • 7 replies
  • 16 views

farfar
Contributor
Forum|alt.badge.img+12
Hi all,

 

I look for ideas to retrieve all values of my attribute if the dissolver count has more han 1.

 

Example :

 

I have 3 shp with ("Name" and "Code" attributes). I connect there with Dissolver transformer (with Dissolver Count Attribute = "NB_Layer" and Liste_Name = "list_layers").

 

I need to add a new attribute with attributeCreator ("LIST_CODE") that contains : 

 

list_layers{0}.Code IF  NB_Layer = 1;

 

list_layers{0}.Code "," list_layers{1}.Code IF  NB_Layer = 2; (concatenation of codes)

 

...;

 

list_layers{0}.Code "," ... "," list_layers{N}.Code IF  NB_Layer = N;

 

 

Thanks an advance.

 

FarFar

Best answer by david_r

Hi,

 

 

if you send the list to a ListExploder you can accomplish this with the regular (i.e. non-list aware) transformers.

 

 

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

7 replies

david_r
Celebrity
  • Best Answer
  • November 26, 2013
Hi,

 

 

if you send the list to a ListExploder you can accomplish this with the regular (i.e. non-list aware) transformers.

 

 

David

takashi
Celebrity
  • November 26, 2013
Hi,

 

 

If you need to concatenate elements of the list attribute, consider using the ListConcatenator transformer.

 

 

Takashi

farfar
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • November 26, 2013
Hi,

 

Thank you for help. I use ListConcatenator transformer. it work but i have a doublons into my list. How can I deleted theme before used listconcatenator?

 

 

Thanks an advance.

 

FarFar

takashi
Celebrity
  • November 26, 2013
Try using the ListDuplicateRemover before concatenating.

farfar
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • November 26, 2013
Thank you Takashi, it works.

 

 

FarFar

david_r
Celebrity
  • November 26, 2013
Just a quick tip: type "list" into the workspace to see all the transformers that work on lists:

 

 

 

You can also look under "Lists" in the Transformer Gallery categories:

 

 

 

David

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • November 26, 2013
Using exploder prior to removing "doublons" might add unescesarry amount of processing.

 

wen u do this on sets witch are listed on ltiple attributes and even more so when u have nested lists, explosions might yield an enormous amount of objects.

 

 

just a tip/reminder..