Class S57UnknownObject
The feature an S-57 object becomes when its object class has no rule in the S57S101Mapping: the translator keeps it, with its geometry, as an FeatureTypeCode feature instead of dropping it.
public static class S57UnknownObject
- Inheritance
-
S57UnknownObject
- Inherited Members
Remarks
S-52 draws an object of unknown class as a "?" (SY(QUESMRK1), or LC(QUESMRK1) round a line or area), and S-64 3.2.1 checks it does. The S-101 and S-401 Feature Catalogues don't define FeatureTypeCode, so the portrayal has no rule for it and falls back to its Default rule, which draws exactly that, by primitive. The "?" is also how a translation gap shows on the chart: a class the mapping doesn't cover yet.
The feature carries the S-57 object class in ObjectClassAttribute and each S-57 attribute under its S-57 acronym, or AttributeCode(ushort) when the mapping doesn't know the attribute, with its value as encoded. A class a rule drops on purpose (a S57FeatureRule with no S-101 class) is still dropped.
Fields
FeatureTypeCode
The feature type code of an object whose class has no rule.
public const string FeatureTypeCode = "S57UnknownObject"
Field Value
ObjectClassAttribute
The attribute that holds the S-57 object class code (OBJL), e.g. "163".
public const string ObjectClassAttribute = "OBJL"
Field Value
Methods
Acronym(int)
The S-57 acronym of an object class, e.g. "TS_PAD" for 138 or
"$AREAS" for 500, or null when the S-57 Object
Catalogue doesn't define it.
public static string? Acronym(int objl)
Parameters
objlintThe S-57 object class code.
Returns
AttributeCode(ushort)
The attribute code for an S-57 attribute the mapping has no acronym
for, e.g. "ATTL17001".
public static string AttributeCode(ushort attl)
Parameters
attlushortThe S-57 attribute code.
Returns
- string
The code.
Name(string?)
The name an FeatureTypeCode feature goes by in a pick
report: "Unknown S-57 object TS_PAD (138)", or
"Unknown S-57 object (999)" for a class the S-57 Object
Catalogue doesn't define.
public static string Name(string? objectClass)
Parameters
objectClassstringThe ObjectClassAttribute value, or null.
Returns
- string
The name.