Table of Contents

Class S101ToS57AttributeRule

Namespace
EncDotNet.S100.Datasets.S57
Assembly
EncDotNet.S100.Datasets.S57.dll

How an S-101 simple attribute converts to an S-57 attribute in S101ToS57Translator.

public sealed record S101ToS57AttributeRule : IEquatable<S101ToS57AttributeRule>
Inheritance
S101ToS57AttributeRule
Implements
Inherited Members

Constructors

S101ToS57AttributeRule(string, ushort, string, string, IReadOnlyDictionary<string, string?>)

How an S-101 simple attribute converts to an S-57 attribute in S101ToS57Translator.

public S101ToS57AttributeRule(string S101Code, ushort Attl, string S57Acronym, string Clause, IReadOnlyDictionary<string, string?> ValueRemap)

Parameters

S101Code string

The S-101 attribute code, e.g. depthRangeMinimumValue.

Attl ushort

The S-57 attribute code (ATTL).

S57Acronym string

The S-57 attribute acronym, e.g. DRVAL1.

Clause string

The S-65 Annex C clause the rule follows.

ValueRemap IReadOnlyDictionary<string, string>

S-101 value โ†’ S-57 value. A key mapped to null isn't converted; a missing key passes the value through.

Properties

Attl

The S-57 attribute code (ATTL).

public ushort Attl { get; init; }

Property Value

ushort

Clause

The S-65 Annex C clause the rule follows.

public string Clause { get; init; }

Property Value

string

InformFormat

When set, the whole value folds into INFORM as this composite format with the value as {0} (e.g. "Maximum draught permitted = {0} metres", ยง27.125), and Attl is not written.

public string? InformFormat { get; init; }

Property Value

string

InformText

S-101 values that S-57 lacks and that fold into INFORM as the given text instead of converting (Annex C Table A-2), e.g. categoryOfHulk 6 โ†’ "Casino".

public IReadOnlyDictionary<string, string> InformText { get; init; }

Property Value

IReadOnlyDictionary<string, string>

S101Code

The S-101 attribute code, e.g. depthRangeMinimumValue.

public string S101Code { get; init; }

Property Value

string

S57Acronym

The S-57 attribute acronym, e.g. DRVAL1.

public string S57Acronym { get; init; }

Property Value

string

ValueRemap

S-101 value โ†’ S-57 value. A key mapped to null isn't converted; a missing key passes the value through.

public IReadOnlyDictionary<string, string?> ValueRemap { get; init; }

Property Value

IReadOnlyDictionary<string, string>