Table of Contents

Class S101DatasetData

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

S-101 Electronic Navigational Chart typed dataset.

public sealed record S101DatasetData : LoadedDatasetData, IEquatable<LoadedDatasetData>, IEquatable<S101DatasetData>
Inheritance
S101DatasetData
Implements
Inherited Members

Remarks

Carries the parsed S101Dataset handle. The MCP describe_feature tool returns SpecNotSupportedForTool for S-101 today (see S101FeatureDescriber); the variant exists so list_datasets can surface ENCs loaded into the viewer.

ExternalTextResolver is an optional file-name → text delegate (backed by the dataset's exchange-set asset source) used to resolve a feature's fileReference / TXTDSC / NTXTDS attributes (S-101 Feature Catalogue) to their referenced text content, so headless consumers (identify_features / pick_features) see the same referenced text the viewer shows. null when the dataset was loaded outside an exchange set.

CompilationScale is the source cell's compilation scale denominator (S-57 DSPM CSCL) when the payload is a translated S-57 cell, and null for a native S-101 or S-401 cell. The translation drops it (S-101 has no compilation scale), so consumers that rank overlapping cells with CellScaleRanking read it from here, as the display does from VectorPortrayalResult.CellCompilationScale.

Constructors

S101DatasetData(S101Dataset, Func<string, string?>?, int?)

S-101 Electronic Navigational Chart typed dataset.

public S101DatasetData(S101Dataset Dataset, Func<string, string?>? ExternalTextResolver = null, int? CompilationScale = null)

Parameters

Dataset S101Dataset
ExternalTextResolver Func<string, string>
CompilationScale int?

Remarks

Carries the parsed S101Dataset handle. The MCP describe_feature tool returns SpecNotSupportedForTool for S-101 today (see S101FeatureDescriber); the variant exists so list_datasets can surface ENCs loaded into the viewer.

ExternalTextResolver is an optional file-name → text delegate (backed by the dataset's exchange-set asset source) used to resolve a feature's fileReference / TXTDSC / NTXTDS attributes (S-101 Feature Catalogue) to their referenced text content, so headless consumers (identify_features / pick_features) see the same referenced text the viewer shows. null when the dataset was loaded outside an exchange set.

CompilationScale is the source cell's compilation scale denominator (S-57 DSPM CSCL) when the payload is a translated S-57 cell, and null for a native S-101 or S-401 cell. The translation drops it (S-101 has no compilation scale), so consumers that rank overlapping cells with CellScaleRanking read it from here, as the display does from VectorPortrayalResult.CellCompilationScale.

Properties

Alerts

Runs the cell's portrayal rules for chosen features and reports the alerts they raise, for route checks (#1127); null when the payload was read without a portrayal catalogue.

public S101AlertPortrayal? Alerts { get; init; }

Property Value

S101AlertPortrayal

CompilationScale

public int? CompilationScale { get; init; }

Property Value

int?

Dataset

public S101Dataset Dataset { get; init; }

Property Value

S101Dataset

DrawingPriority

A feature's highest drawing priority in the cell's latest portrayal, by feature id, or null when it isn't drawn; ranks identify_features matches as S-98 15.1 asks. null when the cell was loaded without a portrayal, which keeps the geometric order.

public Func<string, int?>? DrawingPriority { get; init; }

Property Value

Func<string, int?>

ExternalTextResolver

public Func<string, string?>? ExternalTextResolver { get; init; }

Property Value

Func<string, string>