You are here: Filters > AttributeFilter

AttributeFilter

Routes features to different output ports depending on the value of an attribute. The set of possible attribute values can be entered manually, or extracted from an input source in the properties dialog.

Input Ports

Output Ports

Parameters

Usage Notes

Ideally, you will want to keep the filter list fairly small; otherwise you can end up with a very long list of attributes. If FME determines that the list might be too large, it will return a warning.

Example

You have a feature type called ROADS, and you know you have an attribute value called TYPE. You want to filter by TYPE (in this example, loose, paved, or rough). When you set up the transformer properties and click OK, you will see that the AttributeFilter now has new attributes that correspond to the filter settings:

The transformer will filter and, after you run the workspace, output the separate attributes.

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

Filters

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.