Table of Contents

Class S101ToS57TranslationOptions

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

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

S101ToS57TranslationOptions

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

bool

InformLengthPolicy

What to do with a longer text. Defaults to Keep.

public S101InformLengthPolicy InformLengthPolicy { get; init; }

Property Value

S101InformLengthPolicy

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

string

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

int

NameWithoutUsage

What to do with a name that has no nameUsage. Defaults to ByLanguage.

public S101NameWithoutUsage NameWithoutUsage { get; init; }

Property Value

S101NameWithoutUsage

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; }

Property Value

string