Table of Contents

Class S57DataSetIdentification

Namespace
EncDotNet.S57
Assembly
EncDotNet.S57.dll

Represents the Data Set Identification field (DSID) from S-57.

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

Properties

ApplicationProfile

Gets the application profile identification code (PROF).

public int ApplicationProfile { get; init; }

Property Value

int

Remarks

S-57 Edition 3.1, Part 3 §7.3.1.1 enumerates 1 = EN (ENC new), 2 = ER (ENC revision) and 3 = DD (IHO data dictionary). NATO Additional Military Layers (AML) data sets use a base and an update profile per product (CLB 4/5, ESB 6/7, LBO 10/11, MFF 12/13, RAL 16/17 and SBO 18/19), and AML 3.0 uses 20 for both. When the data set uses the ASCII lexical form, the S-57 mnemonics are mapped to their numeric codes. The value is 0 when the subfield is absent. IsUpdate interprets it. S57ApplicationProfile names the S-57 codes; cast between the two.

AttfLexicalLevel

Gets the lexical level for ATTF (AALL).

public int AttfLexicalLevel { get; init; }

Property Value

int

Remarks

S57LexicalLevel names the levels; cast between the two. ATTF allows levels 0 and 1 only. Lowest(IEnumerable<string?>) picks the lowest level for a set of values.

Comment

Gets the comment (COMT).

public string Comment { get; init; }

Property Value

string

Remarks

S-57 makes this basic text (ASCII), but some producers, such as NATO AML cells, put ISO 8859-1 characters in it, so it's read and written as ISO 8859-1, a superset of ASCII.

DataSetName

Gets the data set name (DSNM).

public string DataSetName { get; init; }

Property Value

string

DataStructure

Gets the data structure (DSTR).

public int DataStructure { get; init; }

Property Value

int

Remarks

The values are the DSSI codes of S-57 Edition 3.1, Part 3 §7.3.1.2, which S57DataStructure names; cast between the two.

EditionNumber

Gets the edition number (EDTN).

public string EditionNumber { get; init; }

Property Value

string

ExchangePurpose

Gets the exchange purpose code (EXPP).

public int ExchangePurpose { get; init; }

Property Value

int

Remarks

S-57 Edition 3.1, Part 3 §7.3.1.1 enumerates 1 = N (data set is new) and 2 = R (data set is a revision). The value is 0 when the subfield is absent; S57DocumentWriter writes 0 as 1. S57ExchangePurpose names the codes; cast between the two.

IntendedUsage

Gets the intended usage code (INTU).

public int IntendedUsage { get; init; }

Property Value

int

IssueDate

Gets the issue date (ISDT).

public string IssueDate { get; init; }

Property Value

string

NatfLexicalLevel

Gets the lexical level for NATF (NALL).

public int NatfLexicalLevel { get; init; }

Property Value

int

Remarks

S57LexicalLevel names the levels; cast between the two. Lowest(IEnumerable<string?>) picks the lowest level for a set of values.

ProducingAgency

Gets the producing agency code (AGEN).

public int ProducingAgency { get; init; }

Property Value

int

Product

Gets the product this data set conforms to, derived from ProductSpecification, ProductSpecificationEdition and ApplicationProfile.

public S57ProductIdentity Product { get; }

Property Value

S57ProductIdentity

Remarks

Use it to tell an ENC from an Inland ENC or a NATO Additional Military Layers (AML) data set after reading it. See FromDataSetIdentification(S57DataSetIdentification).

ProductSpecification

Gets the product specification code (PRSP).

public int ProductSpecification { get; init; }

Property Value

int

Remarks

S-57 Edition 3.1, Part 3 §7.3.1.1 enumerates 1 = ENC (Electronic Navigational Chart) and 2 = ODD (IHO Object Catalogue Data Dictionary). Inland ENC producers declare 10, and NATO Additional Military Layers (AML) producers declare 51-57 (see AmlProduct). When the data set uses the ASCII lexical form, the mnemonics ENC and ODD are mapped to 1 and 2. The value is 0 when the subfield is absent. Product interprets it. To set it, cast from S57ProductSpecification (or AmlProduct).

ProductSpecificationDescription

Gets the product specification description (PSDN).

public string ProductSpecificationDescription { get; init; }

Property Value

string

ProductSpecificationEdition

Gets the product specification edition number (PRED), for example "2.0".

public string ProductSpecificationEdition { get; init; }

Property Value

string

RecordName

Gets the record name.

public S57RecordName RecordName { get; init; }

Property Value

S57RecordName

S57EditionNumber

Gets the edition date (STED).

public string S57EditionNumber { get; init; }

Property Value

string

UpdateApplicationDate

Gets the update application date (UADT).

public string UpdateApplicationDate { get; init; }

Property Value

string

UpdateNumber

Gets the update number (UPDN).

public string UpdateNumber { get; init; }

Property Value

string