You are here: Workspace Basics > Reading and Writing Data > Feature Types and Attributes > Editing Reader Feature Type Properties

Editing Reader (Source) Feature Types

A Reader feature type represents an existing set of data. Its dialog includes a number of options for managing how the data is read. It also includes a representation of the data schema, which generally you will not need to edit.

Displaying Feature Type Parameters and Attributes

To display the Feature Type dialog, do one of the following:

  • Click the gear icon on the upper right of the feature type
  • Right-click on a feature type and select Properties from the menu.
  • On the menu, select View > Windows > Parameter Editor. To view the feature type in the editor, select it on the canvas or in the navigator.

Parameters

General

Edit the feature type name, if desired. Changing this value is rarely necessary because it is meant to reflect (and acts as a filter to) a layer of data in the existing dataset. However, it can be useful when, for example, you are setting up a workspace and do not have access to the original source data.

Note that this capability is not permitted unless you activate it using Tools > FME Options > Workbench > Allow reader feature type editing. Some formats of data specifically disallow such edits.

Merge Feature Type

For reader feature types, you can specify Merge properties.

Other Parameters

Some readers display other parameters to control specific aspects of how the data is read.

User Attributes

Attributes to Read

Note: These options are not available for all formats.

These options allow you to specify the attributes that are read when the workspace is run. Limiting attributes that are read can improve performance and reduce memory consumption.

  • All Attributes – Read all the attributes found in the source data when the workspace is run. The attributes read can differ from those displayed under 'Attribute Definition' (see below).
  • Exposed Attributes – Read only the attributes that are checked in the Exposed column in the Attributes Definition table.

Attribute Definition

This table shows the structure of the source data, including attribute names and their types.

Attributes that are checked under Exposed are shown on the canvas and can be referenced from downstream transformers and writer feature types. Unchecked attributes are hidden in the workspace, but are still read at runtime, unless 'Attributes to Read' is set to Exposed Attributes.

This table automatically populates when you add a new reader. If the structure of the source data has changed or is no longer current, you can update it.

You can enable the ability to edit the Attribute Definition table. On the Workbench page, check Allow reader feature type editing.

Note: Some readers do not support editing the Attribute Definition table, regardless of this setting.

Format Attributes

These are built-in FME attributes that you can "expose" or make visible so that you can set them to particular values and connect them to other format-specific attributes. Apply to... exposes the attributes for multiple, selected feature types.

When you select (expose) an attribute on the reader side, it allows its value to be used in the workspace.

If you deselect an attribute, the attribute will no longer be exposed, but it will still be carried on the feature (even though it will be hidden from Workbench schemas).

See About Feature Types and Attributes.

Applying Changes to Multiple Reader Feature Types

  1. To open the Change Multiple Feature Types dialog, do one of the following:
    • In the Feature Type dialog, click Apply To.
    • In the Parameter Editor, click the Change Multiple Feature Types icon .
  2. By default, all feature types are listed in the Feature Types to Change field. Click the Browse button to check/uncheck feature types from the feature type list that appears (specify a filter to isolate certain feature types). Click OK to close the list box.
  3. You can also change merge settings or choose format attributes to expose for the selected feature types.
  4. Click OK to close the Change Multiple Feature Types dialog.
  5. To confirm the changes to all feature types, including the current one, click OK in the Feature Type dialog. You will be asked to confirm any changes to other feature types. Note that if you click Cancel, none of the changes will be applied.