Class S101ToS57FeatureRule
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
S101CodestringThe S-101 feature class code, e.g.
Coastline.ObjlushortThe S-57 object class code (OBJL).
S57AcronymstringThe S-57 object class acronym, e.g.
COALNE.ClausestringThe S-65 Annex C clause the rule follows.
FixedAttributesIReadOnlyDictionary<string, string>S-57 attributes, by acronym, that the S-57 object takes from the class alone, e.g.
CATMOR3 on aMORFACconverted from aBollard. Empty for most classes.
Properties
Clause
The S-65 Annex C clause the rule follows.
public string Clause { get; init; }
Property Value
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
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
Objl
The S-57 object class code (OBJL).
public ushort Objl { get; init; }
Property Value
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
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
S101Code
The S-101 feature class code, e.g. Coastline.
public string S101Code { get; init; }
Property Value
S57Acronym
The S-57 object class acronym, e.g. COALNE.
public string S57Acronym { get; init; }