RasterRGBCreator

Creates a color raster feature of specified size, resolution, and interpretation type, with default cell values.

Jump to Configuration

Typical Uses

  • Workspace testing
  • Creating raster placeholders

How does it work?

The RasterRGBCreator creates a single raster feature, based on specified size, resolution, rotation, and interpretation type. Size may be defined either by number of rows and columns, or by extents.

Minimum and maximum color values must be provided. Alpha values and nodata values may be optionally applied.

Palettes may be generated. The number of entries in a palette will depend on the Data Pattern and Color Values chosen, and the output raster will have one band of the appropriate UInt type.

Three Data Pattern options are provided, shown here on a 24 by 24 cell raster:

Single Value

All cells have the Max Color Value.

If alpha values are specified, Max Alpha Value will be applied.

If Create Palette is Yes, the palette will contain only one entry, with the value of the Max Color Value.

Single value, no alpha.

Checkered Pattern

Alternating cells have values between the Min and Max Color Values.

If alpha values are specified, they will also be applied to the colored cells in a gradient between Min and Max Alpha Values.

If Create Palette is Yes, the palette will contain as many entries as colors generated, within the limitations of the Palette Key Interpretation type.

Checkered Pattern with two colors, and alpha values ranging from 0 to 1.

Checkerboard

An 8 by 8 checkerboard pattern is created, with alternating blocks of cells set to the Min and Max Color Values.

If alpha values are specified, the Min Alpha Value is applied to the Min Color Value blocks, and the Max Alpha Value is applied to the Max Color Value blocks.

If Create Palette is Yes, the palette will contain two entries, representing the Min and Max values (both color and alpha).

Checkerboard with two colors, no alpha.

Usage Notes

Choosing a Raster Transformer

FME has an extensive selection of transformers for working with raster data. They can be generally categorized as working with whole rasters, bands, cells or palettes, and those designed for workflow control or combing raster with vector data.

For information on raster geometry and properties, see Rasters (IFMERaster).

Configuration

Input Ports

This transformer has no input ports.

Output Ports

Parameters

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.

Defining Values

There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.

Reference

Processing Behavior

Not Applicable

Feature Holding

Not Applicable

Dependencies None
FME Licensing Level FME Professional Edition and above
Aliases  
History  
Categories

Rasters

FME Community

The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.

Search for all results about the RasterRGBCreator on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver