Table of Contents

Class CoverageColorScheme

Namespace
EncDotNet.S100.Pipelines.Coverage
Assembly
EncDotNet.S100.Core.dll

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

IReadOnlyList<ColorBand>

FieldName

Name of the coverage value field the bands apply to (a Name, e.g. "depth").

public required string FieldName { get; init; }

Property Value

string

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

string

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

value float

The cell value, in the field's units.

Returns

string

The Color of the first band whose [MinValue, MaxValue) range contains value, or null when none does.