Table of Contents

Class S101ToS57FeatureRule

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

How an S-101 feature class converts to an S-57 object class in S101ToS57Translator.

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

Constructors

S101ToS57FeatureRule(string, ushort, string, string, IReadOnlyDictionary<string, string>)

How an S-101 feature class converts to an S-57 object class in S101ToS57Translator.

public S101ToS57FeatureRule(string S101Code, ushort Objl, string S57Acronym, string Clause, IReadOnlyDictionary<string, string> FixedAttributes)

Parameters

S101Code string

The S-101 feature class code, e.g. Coastline.

Objl ushort

The S-57 object class code (OBJL).

S57Acronym string

The S-57 object class acronym, e.g. COALNE.

Clause string

The S-65 Annex C clause the rule follows.

FixedAttributes IReadOnlyDictionary<string, string>

S-57 attributes, by acronym, that the S-57 object takes from the class alone, e.g. CATMOR 3 on a MORFAC converted from a Bollard. Empty for most classes.

Properties

Clause

The S-65 Annex C clause the rule follows.

public string Clause { get; init; }

Property Value

string

Companions

Further S-57 objects created at the feature's position when their condition matches (e.g. a PILPNT for a landmark standing in the water, §30). They take the rule's fixed attributes and the feature's SCAMIN.

public IReadOnlyList<S101ToS57FeatureRedirect> Companions { get; init; }

Property Value

IReadOnlyList<S101ToS57FeatureRedirect>

FixedAttributes

S-57 attributes, by acronym, that the S-57 object takes from the class alone, e.g. CATMOR 3 on a MORFAC converted from a Bollard. Empty for most classes.

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

Property Value

IReadOnlyDictionary<string, string>

Objl

The S-57 object class code (OBJL).

public ushort Objl { get; init; }

Property Value

ushort

PrimitiveChange

How the S-57 object's geometric primitive differs from the S-101 feature's (Annex C Table 2-1).

public S101ToS57PrimitiveChange PrimitiveChange { get; init; }

Property Value

S101ToS57PrimitiveChange

Redirects

Conditions under which the feature converts to another S-57 class instead, tried in order; the first that matches wins (e.g. a Landmark with categoryOfLandmark 26 becomes a BRIDGE, §7.2).

public IReadOnlyList<S101ToS57FeatureRedirect> Redirects { get; init; }

Property Value

IReadOnlyList<S101ToS57FeatureRedirect>

S101Code

The S-101 feature class code, e.g. Coastline.

public string S101Code { get; init; }

Property Value

string

S57Acronym

The S-57 object class acronym, e.g. COALNE.

public string S57Acronym { get; init; }

Property Value

string