Class WaterLevelPreference
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
The rule for choosing between overlapping gridded S-104 datasets, shared with the viewer's pick report: the finest grid wins, then the latest issue, then the ordinally smaller dataset id so the choice never depends on load order.
public static class WaterLevelPreference
- Inheritance
-
WaterLevelPreference
- Inherited Members
Methods
Compare(double, DateTime?, string, double, DateTime?, string)
Compares two candidates; a negative result means spacingA's
candidate is preferred.
public static int Compare(double spacingA, DateTime? issuedA, string idA, double spacingB, DateTime? issuedB, string idB)
Parameters
spacingAdoubleGrid spacing of the first candidate (any consistent unit).
issuedADateTime?Issue time of the first candidate, or
null.idAstringDataset id of the first candidate.
spacingBdoubleGrid spacing of the second candidate.
issuedBDateTime?Issue time of the second candidate, or
null.idBstringDataset id of the second candidate.
Returns
- int
Negative when A is preferred, positive when B is, zero for identical keys.