FME Transformers: 2024.2

Categories
Rasters
Related Transformers
2DGridCreator
Creator
PointCloudCreator
RasterNumericCreator

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.

Examples

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 combining 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

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Not Applicable

Feature Holding

Not Applicable

Dependencies None
Aliases  
History  

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

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

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.