Answers for "Expose attributes that match a pattern" https://knowledge.亚搏在线safe.com/questions/35057/expose-attributes-that-match-a-pattern.html The latest answers for the question "Expose attributes that match a pattern" Answer by david_r https://knowledge.safe.com/answers/35061/view.html

This is somewhat related tohttps://knowledge.safe.com/questions/30874/expose-format-attributes-with-values-only.htmlandhttps://knowledge.safe.com/questions/32483/dynamic-attributes-in-custom-transformer.html.

The short answer is that you can't, really.At least not easily without resorting to tricks.

You could either continue with the PythonCaller (my preferred solution), or consider a solution using the AttributeExploder, which will let you work with features having attribute names that are unknown when you design the workspace.Just be aware that the AttributeExploder route can be quite demanding on memory resources when x gets bigger, but on the other hand you can do everything without having to deal with Python.

Tue, 11 Oct 2016 11:01:28 GMT david_r
Answer by ebygomm https://knowledge.safe.com/answers/35060/view.html

You can expose attributes using a featuremerger (not sure whether this is by accident or design).

If you have a file which has all the attributes you wish to expose, you can merge with the data (using 1 so everything is merged) with the featuremerger settings set to accumuldation mode - merge supplier and conflict resolution - use requestor.

Tue, 11 Oct 2016 10:52:46 GMT ebygomm