Skip to main content

Hi all.

Is it possible to expose all attributes with a specific prefix with a transformer ?

E.g. x_kjhkjhgk, x_iuyiuytiuyt and x_nmbvmnbvmnbvc

All attributes are read by FeatureReaders and renamed with a BulkAttributeRenamer.

Or most I delve into doing some Python magic using the schema features and fmeobjects ??

Cheers.

Hi ​@lifalin2016 ,

There is no way to expose attributes automatically in any case, but it would not be necessary to expose attributes in some cases.

Why did you think exposing attributes would be required?


Hi ​@lifalin2016 ,

There is no way to expose attributes automatically in any case, but it would not be necessary to expose attributes in some cases.

Why did you think exposing attributes would be required?

Hi Takashi.

I didn’t think there would be an option, but I wanted to be absolutely sure, and not overlook some tricky way.

Not all transformers accept manual entries like “@Value(whatever)” or even “@Value(@Value(whatever))” as input, and require exposed attributes.

But it does seem like I have to make some sort of a work-around :-/


If I’ve understood correctly, I think a better option would be to allow selection of attributes based on regular expression in various transformers without the need to expose the attributes individually.

 

e.g. in the ExpressionEvaluator in the Attributes To Overwrite option you could specify attributes based on matching a regular expression.

 

I know in the past I’ve done this sort of thing with python, e.g. applying a multiplication factor to all attributes that had a certain suffix.