FME Transformers: 2024.1

Categories
Attributes
Database
Related Transformers
AttributeCopier
AttributeCreator
AttributeManager
AttributeRemover
AttributeRenamer
AttributeValueMapper
BulkAttributeRemover
BulkAttributeRenamer

AttributeKeeper

Removes all attributes and list attributes, except the specific ones you specify to be retained.

Jump to Configuration

Typical Uses

  • Cleaning up features with large numbers of unnecessary attributes

How does it work?

Once connected to input features, the AttributeKeeper provides pick lists (one for attributes and one for list attributes) for you to choose which attributes to retain. All other attributes are removed, and the modified features are output.

Geometry and FME attributes are not removed.

Format attributes will be removed whether exposed or not . Exposed FME attributes will simply be hidden - not removed permanently.

Examples

Usage Notes

  • If the number of attributes you want to keep is greater than the number of attributes you want to remove, consider using the AttributeManager.
  • Use the AttributeManager to remove selected individual attributes from a feature.
  • Use the BulkAttributeRemover to remove all attributes that match a pattern.
  • To keep a Format attribute, expose it first, either in the reader or by using the AttributeExposer
  • If you choose to keep a list element attribute, for example member{0}.type, it won’t appear under the transformer unless this element has already been exposed. See Exposing List Attributes for more information.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Feature-Based

Feature Holding

No

Dependencies None
Aliases ListKeeper
History  

FME Community

The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.

Search for all results about the AttributeKeeper on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.