Class DefaultDisplayPlaneAuthority
- Namespace
- EncDotNet.S100.Datasets.Pipelines.Interoperability
- Assembly
- EncDotNet.S100.Core.dll
Mapsui-free default-plane authority over an IProductPlaneTable, whose built-in entries follow S-98 Main §9.2.1 / MSC.530(106)/Rev.1 §Appendix 2 "priority of information". This is the authoritative GetDefaultPlane(string, string?) implementation; the Mapsui-typed cross-dataset stack authority delegates its own plane lookups here so there is a single table.
public sealed class DefaultDisplayPlaneAuthority : IDisplayPlaneAuthority
- Inheritance
-
DefaultDisplayPlaneAuthority
- Implements
- Inherited Members
Remarks
A product the table doesn't know, or a layer kind it gives no plane, lands on OtherChartOverlays so the renderer doesn't lose the layer. The built-in table (the registry's product traits) is:
- S-101 / S-57 / S-401:
"area"→ BaseChartUnder; otherwise BaseChartOver. - S-102: Bathymetry.
- S-104:
"s104.stations"→ OtherChartOverlays; otherwise OnDemandSurface. - S-111: every sub-layer (
"s111.arrows"grid arrows and"s111.stations"station / mesh arrows) → DynamicArrows. - S-124: CautionsAndWarnings; S-129: OnDemandSurface; the other GML products: OtherChartOverlays.
Constructors
DefaultDisplayPlaneAuthority(IProductPlaneTable)
Creates an authority over products.
public DefaultDisplayPlaneAuthority(IProductPlaneTable products)
Parameters
productsIProductPlaneTableThe per-product plane table, usually the product registry.
Properties
Empty
An authority that knows no products and puts every layer on OtherChartOverlays. Used where no product table is in reach (a renderer without the dataset pipelines); hosts pass the product registry's authority instead.
public static DefaultDisplayPlaneAuthority Empty { get; }
Property Value
Methods
GetDefaultPlane(string, string?)
Returns the default S-98 display plane for a given product specification and optional feature-type or sub-layer kind hint.
public S98DisplayPlane GetDefaultPlane(string productSpec, string? featureTypeOrLayerKind = null)
Parameters
productSpecstringThe product spec name (e.g.
"S-101").featureTypeOrLayerKindstringOptional sub-layer kind / feature-type hint.
Returns
- S98DisplayPlane
The default plane for the pair.