Table of Contents

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

spacingA double

Grid spacing of the first candidate (any consistent unit).

issuedA DateTime?

Issue time of the first candidate, or null.

idA string

Dataset id of the first candidate.

spacingB double

Grid spacing of the second candidate.

issuedB DateTime?

Issue time of the second candidate, or null.

idB string

Dataset id of the second candidate.

Returns

int

Negative when A is preferred, positive when B is, zero for identical keys.