Class S101ToS57AttributeRule
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
S101CodestringThe S-101 attribute code, e.g.
depthRangeMinimumValue.AttlushortThe S-57 attribute code (ATTL).
S57AcronymstringThe S-57 attribute acronym, e.g.
DRVAL1.ClausestringThe S-65 Annex C clause the rule follows.
ValueRemapIReadOnlyDictionary<string, string>S-101 value โ S-57 value. A key mapped to
nullisn't converted; a missing key passes the value through.
Properties
Attl
The S-57 attribute code (ATTL).
public ushort Attl { get; init; }
Property Value
Clause
The S-65 Annex C clause the rule follows.
public string Clause { get; init; }
Property Value
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
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
S101Code
The S-101 attribute code, e.g. depthRangeMinimumValue.
public string S101Code { get; init; }
Property Value
S57Acronym
The S-57 attribute acronym, e.g. DRVAL1.
public string S57Acronym { get; init; }
Property Value
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; }