Table of Contents

Class VerticalDatums

Namespace
EncDotNet.S100.DataModel
Assembly
EncDotNet.S100.Core.dll

Helpers for resolving IHO S-100 VerticalDatum codes to human-readable labels.

public static class VerticalDatums
Inheritance
VerticalDatums
Inherited Members

Methods

GetLabel(int?)

Resolves a vertical datum code to a human-readable label. Unknown codes are rendered as "Unknown (code N)", and a null code (attribute absent) as "Unknown".

public static string GetLabel(int? code)

Parameters

code int?

The S-100 verticalDatum code, or null.

Returns

string

A human-readable datum label.

TryGetLabel(int, out string)

Attempts to resolve the S-100 register label for a vertical datum code.

public static bool TryGetLabel(int code, out string label)

Parameters

code int

The S-100 verticalDatum code.

label string

The resolved label when the code is recognised.

Returns

bool

true when the code is a defined register value.