You are here: FME Transformers > Collectors > FeatureMerger

FeatureMerger

Moves the attributes/geometry from one feature to another feature. Features that contain the desired attributes/geometry are connected through the SUPPLIER port, and the features that will receive the attributes/geometry are connected through the REQUESTOR port.

When a Requestor finds a Supplier, the attributes from the Supplier are merged with the Requestor. If the Requestor already had an attribute that the Supplier also had, the Requestor's original value for that attribute is preserved. A single Supplier may be used by many Requestors.

Any merged geometry preserves arcs, ellipses and text.

Requestor features are joined to Supplier features when their respective Join Attribute parameters have the same value.

Input Ports

Output Ports

Parameters

Usage Notes

Relationship to InlineQuerier

The InlineQuerier is the powerful cousin of the FeatureMerger. Whereas the FeatureMerger joins two datasets and uses a simple, single attribute key to match features, the InlineQuerier allows any number of input datasets to be merged, using the full power of SQL across any number of tables and columns. Furthermore, the InlineQuerier allows its input data to be reused multiple times in a single transformer, whereas if multiple joins are to be done with a FeatureMerger, multiple FeatureMergers must be employed and copies of the features sent to each. On the other hand, there is some overhead for the InlineQuerier to load the underlying SQLite database. Using a single InlineQuerier instead of several FeatureMergers also simplifies the workspace.

Unless only a single FeatureMerger is needed in a workflow, the InlineQuerier may be a better choice. Older workspaces with multiple cascading FeatureMergers may experience a performance improvement by replacing the FeatureMergers with a single properly configured InlineQuerier.

Relationship to SQLCreator/SQLExecutor

If all the data to be queried already exists in a SQL-capable data source, it is always more efficient to use the SQLCreator or SQLExecutor, because this allows the queries and filtering of the data to be executed directly by the database before it enters the FME environment.

Relationship to Joiner

The FeatureMerger joins two datasets and uses a simple, single attribute key to match features. You can concatenate attributes to simulate a multi-key join. The FeatureMerger is also able to perform certain geometric operations on incoming features using its Merge Type parameter. FeatureMerger does all joins in memory so it can be faster than the Joiner if you have more than one relationship on the same data. The article FME2011 Use Case: Joiner vs FeatureMerger contains a more detailed comparison of these transformers.

Editing Transformer Parameters

About Transformer Parameter Options

Transformer Categories

Collectors

 

Search FMEpedia

Search for samples and information about this transformer on FMEpedia.

Keywords: concatenated foreign key tag cross-reference "cross reference" FeatureMerger