Table of Contents

Class S128PortrayalCatalogue

Namespace
EncDotNet.S100.Datasets.S128
Assembly
EncDotNet.S100.Datasets.S128.dll

S-128 portrayal catalogue. Delegates all XSLT-based portrayal infrastructure to GmlPortrayalCatalogueBase, and wraps the upstream main rule in an adapter that draws product coverages as outlines only.

public sealed class S128PortrayalCatalogue : GmlPortrayalCatalogueBase, IVectorPortrayalCatalogue, IPortrayalCatalogue, IXsltRuleSource, ILuaRuleSource, IPortrayalAssetSource
Inheritance
S128PortrayalCatalogue
Implements
Inherited Members

Remarks

The bundled catalogue is byte-identical to the IHO upstream, which fills each product coverage 70 % opaque on OVERRADAR. Over an ENC, nested products (a harbour cell inside an approach cell) stack to near-opaque and hide the chart, which S-98 Main ยง9.2.1 forbids. Upstream issue #51 and the upstream Lua port (PR #56) drop the fills; the adapter (Adapter/outlineOnly.xsl) does the same until the bundled catalogue is refreshed.

Constructors

S128PortrayalCatalogue(PortrayalCatalogueProvider)

Creates an S-128 portrayal catalogue backed by the given provider.

public S128PortrayalCatalogue(PortrayalCatalogueProvider provider)

Parameters

provider PortrayalCatalogueProvider

The portrayal catalogue provider that supplies rule files and assets.

Exceptions

ArgumentNullException

provider is null.

Properties

Spec

The product specification (name + edition) this catalogue targets.

public override SpecRef Spec { get; }

Property Value

SpecRef

Methods

GetCompiledRuleAsync(string, CancellationToken)

For the main rule, returns the outline-only adapter compiled over the upstream rule files. All other rules delegate to base.

public override ValueTask<XslCompiledTransform> GetCompiledRuleAsync(string ruleName, CancellationToken cancellationToken = default)

Parameters

ruleName string
cancellationToken CancellationToken

Returns

ValueTask<XslCompiledTransform>