You are here: RastersRasterSelector

RasterSelector

Selects specific bands and palettes of a raster for subsequent transformer operations.

The bands and palettes are selected using the band and palette indices, specified in a string. The string may either be specified explicitly or through an attribute. The format of the string is B P (separated with a space), where B is the band index and P is the palette index of the band and palette to be operated on. Indices are zero-based, so the first band or palette is at index 0.

Parameters

Example

all bands ALL
all bands and all palettes ALL ALL
first palette of the first band of a raster 0 0
first palette of the first band and first palette of the third band 0 0;2 0
the first three bands of the raster (without their palettes) 0;1;2
the first three bands of the raster (with their palettes) 0 ALL;1 ALL;2 ALL

Usage Notes

  • This function overrides any existing selection on the raster. All unspecified bands and palettes on a raster after selection are treated as unselected for future operations. Selection is not considered by writers, so use the RasterBandSeparator and filtering to write subsets of the bands and palettes as individual features.
  • It is possible to select bands without selecting the attached palettes.
  • It is NOT possible to select palettes without selecting the owning band.
  • Specific palettes cannot be selected on ALL bands; for example, ALL 2.

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

Rasters

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 channel palette lookup LUT colormap colourmap selection select modify