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
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
bathymetryChartedDepthThe S-102 sample, or
null.dredgedAreaChartedDepthThe shoalest covering S-101 dredged area, or
null.depthAreaChartedDepthThe shoalest covering S-101 depth area, or
null.soundingChartedDepthThe nearest S-101 sounding, or
null.
Returns
- ChartedDepth
The chosen depth, or
nullwhen 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
aChartedDepthA candidate.
bChartedDepthAnother candidate.
Returns
- ChartedDepth
The shoaler candidate, or
nullwhen 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
Returns
- bool
truewhen the value is a finite number.