ColormapRenderer

A colormap renderer provides a discrete mapping of raster cell values to colors to help visualize the raster data in a RasterLayer. All cells matching the specified value will be rendered using the mapped color. This is useful for thematic mapping tasks such as land classification when you want the values in the raster layer to be represented by a specified color. This concept of this class is similar to an UniqueValueRenderer, except that ColormapRenderer is specifically for rendering raster cell values.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(colormap: Colormap? = null)

Creates a raster colormap renderer with the specified colormap.

constructor(colors: Iterable<Color>)

Creates a raster colormap renderer with a colormap created from the specified colors. Raster value of 0 maps to the first color, with each consecutive value mapping to the next color.

Properties

Link copied to clipboard

The colormap object.