Skip to main content
Open

Attribute manipulation on lists

Related products:Transformers
  • March 17, 2016
  • 4 replies
  • 60 views

jdh
Contributor
Forum|alt.badge.img+40

There are several situations where I would like to use a transformer that manipulates attributes on every element in a list. The current option is to explode the list, do the manipulation and then reconstitute the list, which is inefficient (introduces blocking transformers) and can cause issues with the geometry of a feature, create a looping custom transformer with a listIndexer for every element in the list, or alternatively code the list manipulation in python. It would be nice if the following transformers could work on lists.


Manipulates the attributes directly:
AttributeTrimmer
StringCaseChange
StringFormatter
DateFormatter
StringPadder

Creates parallel structure list:

AttributeValueMapper
FilenamePartExtractor
StringConcatenator
SubstringExtractor

i'm sure there are other transformers that would benefit from this as well.

4 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • March 17, 2016

Like the AttributeManager, but then for list manipulation. So I would call it the ListAttributeManager.


fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • March 18, 2016

If we could make the places that accept a set of attribute names also accept an unqualified list (i.e. someList{}.anElement or someList{} ) , I suspect this would do what is desired here. Good suggestion.


tomf
Supporter
Forum|alt.badge.img+23
  • Supporter
  • October 5, 2018

Adding the AttributeRounder to the list ...

(And bumping the idea up!)


andreaatsafe
Safer
Forum|alt.badge.img+15
The following idea has been merged into this idea:

All the votes have been transferred into this idea.