AttributeExploder
Input Ports
Features with attributes.
Output Ports
Features containing the attribute-value pairs.
Parameters
The new attribute used for the name of the extracted attribute.
The new attribute used for the value of the extracted attribute.
The original attributes and geometry are conserved or deleted depending on the settings for Keep geometry and Keep attributes.
When Exploding Type is set to Features, one feature is output for each original attribute. Each output feature will have two new attributes: one named Attribute Name Label (whose value will be the initial attribute's name) and one named Attribute Value Label (whose value will be the initial attribute's value).
When Exploding Type is set to List, the processed feature will have a new list attribute defined by List Name which will contain one entry (with attribute name and attribute value members, named by Attribute Name Label and Attribute Value Label) for each attribute of the feature.
Note: List attributes are not accessible from the output schema in Workbench unless they are first processed using a transformer that operates on them, such as ListExploder or ListConcatenator. All list attribute transformers are displayed in the Contents pane of the Transformer Help under Lists. Alternatively, AttributeExposer can be used.
If Keep Geometry is Yes, each output feature will have the same geometry as the given input feature. Otherwise, output features will have no geometry.
If Keep Attributes is Yes, the initial attributes on the processed features are preserved. Otherwise, output features will only have the attributes created by this factory.
The list attribute to be used when the Exploding Type parameter is set to List.
Example
Suppose we have an input feature with the following two attributes:.
- Name = John
- Type = Employee
If Keep Attributes is set to Yes, the parameter Exploding Type: Feature will produce two features with four attributes each:
Name = John
Type = Employee
_attr_name = Name
_attr_value = John
Name = John
Type = Employee
_attr_name = Type
_attr_value = Employee
The parameter Exploding Type: List will add an attribute list to the original feature:
Name = John
Type = Employee
_attr_list{0}._attr_name = Name
_attr_list{0}._attr_value = John
_attr_list{1}._attr_name = Type
_attr_list{1}._attr_value = Employee
Related Transformers
FME Licensing Level
FME Professional edition and above
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.