Table of Contents

Class EcdisCategoryMapper

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

Maps a cross-spec EcdisDisplayCategory to the per-spec displayMode id declared in that spec's bundled portrayal catalogue. Specs that only declare a single mode (typically just StandardDisplay) fall back to null for non-Standard categories — meaning "no mode filter, render everything", matching the bundled catalogue's authoring intent.

public static class EcdisCategoryMapper
Inheritance
EcdisCategoryMapper
Inherited Members

Methods

Map(string, EcdisDisplayCategory, IReadOnlySet<string>)

Resolves the ECDIS category for a given spec to a ActiveDisplayModeId value. Returns null for "All" (no filter) or for specs that don't declare per-category modes.

public static string? Map(string productSpec, EcdisDisplayCategory category, IReadOnlySet<string> availableModeIds)

Parameters

productSpec string

Spec code, e.g. "S-101".

category EcdisDisplayCategory

Cross-spec ECDIS category.

availableModeIds IReadOnlySet<string>

Display-mode ids declared by the spec's portrayal catalogue.

Returns

string