Class CoverageColorScheme
Maps value ranges to colours for portrayal of gridded coverage data.
public sealed class CoverageColorScheme
- Inheritance
-
CoverageColorScheme
- Inherited Members
Properties
Bands
The colour bands, evaluated in order by Resolve(float); the first band whose range contains the value wins.
public required IReadOnlyList<ColorBand> Bands { get; init; }
Property Value
FieldName
Name of the coverage value field the bands apply to (a
Name, e.g. "depth").
public required string FieldName { get; init; }
Property Value
NoDataColor
Optional colour applied to cells whose value equals the
coverage's no-data sentinel. When null, the renderer
leaves no-data cells transparent (legacy behaviour). When set,
the renderer paints them with this hex colour — typically the
portrayal catalogue's NODTA token resolved against the
active palette (S-100 Part 9 colour-table semantics).
public string? NoDataColor { get; init; }
Property Value
Methods
Resolve(float)
Resolves a value to a colour hex string using the bands.
Returns null for no-data or out-of-range values.
public string? Resolve(float value)
Parameters
valuefloatThe cell value, in the field's units.