Table of Contents

Class ChartedDepthResolver

Namespace
EncDotNet.S100.Navigation
Assembly
EncDotNet.S100.Navigation.dll

The depth priority chain shared by the viewer's pick report and the passage check: S-102 bathymetry, then S-101 DredgedArea, then S-101 DepthArea, then the nearest S-101 Sounding.

public static class ChartedDepthResolver
Inheritance
ChartedDepthResolver
Inherited Members

Properties

MinimumDepthAttributeCodes

Attribute codes that carry an S-101 area's minimum depth (depthRangeMinimumValue, and its S-57 acronym DRVAL1).

public static IReadOnlyList<string> MinimumDepthAttributeCodes { get; }

Property Value

IReadOnlyList<string>

Methods

Resolve(ChartedDepth?, ChartedDepth?, ChartedDepth?, ChartedDepth?)

Picks the highest-priority candidate that is present.

public static ChartedDepth? Resolve(ChartedDepth? bathymetry, ChartedDepth? dredgedArea, ChartedDepth? depthArea, ChartedDepth? sounding)

Parameters

bathymetry ChartedDepth

The S-102 sample, or null.

dredgedArea ChartedDepth

The shoalest covering S-101 dredged area, or null.

depthArea ChartedDepth

The shoalest covering S-101 depth area, or null.

sounding ChartedDepth

The nearest S-101 sounding, or null.

Returns

ChartedDepth

The chosen depth, or null when every candidate is absent.

Shoaler(ChartedDepth?, ChartedDepth?)

The shoaler of two candidates (smaller depth); either may be null.

public static ChartedDepth? Shoaler(ChartedDepth? a, ChartedDepth? b)

Parameters

a ChartedDepth

A candidate.

b ChartedDepth

Another candidate.

Returns

ChartedDepth

The shoaler candidate, or null when both are absent.

TryReadMeters(object?, out double)

Reads a depth attribute value as metres. S-101 stores attribute values as text in the dataset's encoding; numbers parse with the invariant culture.

public static bool TryReadMeters(object? value, out double meters)

Parameters

value object

The raw attribute value.

meters double

The parsed value.

Returns

bool

true when the value is a finite number.