Class S101ToS57TranslationOptions
The choices S-65 Annex C leaves to the converter, for S101ToS57Translator.
public sealed record S101ToS57TranslationOptions : IEquatable<S101ToS57TranslationOptions>
- Inheritance
-
S101ToS57TranslationOptions
- Implements
- Inherited Members
Properties
Default
The default options.
public static S101ToS57TranslationOptions Default { get; }
Property Value
IncludeOptionalInform
Whether to make the conversions to INFORM that Annex C marks
optional (the clauses with a grey background, §2.4.6). Phase 1 treats
multiplicityOfFeatures (§2.1.1, §27.131) as one of them.
Defaults to true.
public bool IncludeOptionalInform { get; init; }
Property Value
InformLengthPolicy
What to do with a longer text. Defaults to Keep.
public S101InformLengthPolicy InformLengthPolicy { get; init; }
Property Value
InformSeparator
The separator between text strings folded into one INFORM or
NINFOM (Annex C §2.4.1, §2.4.6). Defaults to ";".
public string InformSeparator { get; init; }
Property Value
MaxInformLength
The recommended maximum length of INFORM and NINFOM
(Annex C §2.4.6). Defaults to 300 characters.
public int MaxInformLength { get; init; }
Property Value
NameWithoutUsage
What to do with a name that has no nameUsage. Defaults to
ByLanguage.
public S101NameWithoutUsage NameWithoutUsage { get; init; }
Property Value
NationalLanguage
The language whose national name, text and file reference to prefer for
NOBJNM, NINFOM and NTXTDS when there are several
(Annex C §2.4.12.1, §27.132), as an ISO 639-2 code such as fra.
null, the default, takes the first.
public string? NationalLanguage { get; init; }