Performs a lookup on a range-based lookup table and stores the resulting value, or writes the value to, a new output attribute. This transformer lets you use an input attribute to classify features by numeric ranges.
The feature type that contains the attributes you want to filter.
All features are output through this port, with the classification of the Source Attribute stored in the Output Attribute.
Note: The ranges you create are inclusive and the order in which they appear on the table matters. The ranges are tested starting with the first one in the list and progressing to the last range listed. For example, suppose one range is from 10 to 20 and the next range is from 20 to 30. The number 20 can belong to both ranges because each range is inclusive, but the number will only be matched to the first range.
The Input Attribute value is the attribute whose value is matched in the range lookup table.
The list of available input attributes are those that are exposed to this transformer, which depends on the transformers connected to it.
This is the attribute you want to classify. Open the list and select the input attribute you want to use for classifying ranges.
This is the name of the new attribute that is created as the result of the classification.
This table specifies a set a ranges and the value that will be assigned to the Output Attribute if the Source Attribute value matches that range.
The table contains the following elements:
- From: Specify the start value for the range that you are classifying. This field accepts numerical input only and must be less than the value in the To field.
If a From value is not specified, an open-ended range is specified.
- To: Specify the end value for the range that you are classifying. This field accepts numerical input only and must be greater than the value in the From field.
If a To value is not specified, an open-ended range is specified.
- Output Value: Enter the name you want to give this range of values.
- Default Value: If an attribute’s value does not match any input ranges set in the table, the output class assigned is specified by the Default Value.
How to Quickly Generate Range Table Values
When you know the total number of values in a range, and you know how many groupings you want, this is a quick way to generate the range table values. Click Generate button in the Parameters dialog.
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.
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.
Tags Keywords: LUT lookup look-up RangeMapper