RasterBandNameSetter
Sets the name of selected bands on a raster.
Input Ports
Input features must contain raster features only.
Parameters
The band names may be specified in two ways depending on the parameter you choose for Input Type:
- Single Name, which enables the Band Name parameter
- List of Names, which enables the List Attribute parameter
When Input Type is set to Single Name, a single band name must be specified in the Band Name parameter. This name will be set on all selected bands.
When Input Type is set to List of Names, a list attribute that contains band names must be specified. Then, the name for each selected band will be set to the value at the corresponding index in the list. The list attribute must contain at least as many elements are there are selected bands.
For example, suppose you have the following list attribute:
_bandnames{0} = 'red'
_bandnames{1} = 'green'
_bandnames{2} = 'blue'
and the raster feature has three bands, where bands 0 and 2 are selected. Then, the name of band 0 will be set to 'red', the name of band 1 will be unchanged (since it is not selected), and the name of band 2 will be set to 'green' (since 'green' is the second element in the list and band 2 is the second selected band).
Usage Notes
- This transformer supports raster band selection: see the RasterSelector.
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
FME Licensing Level
FME Professional edition and above
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.
Tags Keywords: raster grid band properties name