Struct AmlAttributeValue
Represents an attribute value of an AML feature together with the catalogue definition of its attribute code.
public readonly record struct AmlAttributeValue : IEquatable<AmlAttributeValue>
- Implements
- Inherited Members
Remarks
Get these from GetAttributes(S57TypedFeature) or GetNationalAttributes(S57TypedFeature).
Constructors
AmlAttributeValue(S57AttributeValue, S57AttributeDefinition?)
Represents an attribute value of an AML feature together with the catalogue definition of its attribute code.
public AmlAttributeValue(S57AttributeValue Value, S57AttributeDefinition? Definition)
Parameters
ValueS57AttributeValueThe attribute value as encoded (
ATTLandATVL).DefinitionS57AttributeDefinitionThe attribute's definition in the data set's catalogue, or null when the catalogue has no attribute with the value's code.
Remarks
Get these from GetAttributes(S57TypedFeature) or GetNationalAttributes(S57TypedFeature).
Properties
Acronym
Gets the attribute acronym from Definition, for example OBJNAM or
databa, or null when the attribute isn't in the catalogue.
public string? Acronym { get; }
Property Value
Code
Gets the attribute code (ATTL).
public int Code { get; }
Property Value
Definition
The attribute's definition in the data set's catalogue, or null when the catalogue has no attribute with the value's code.
public S57AttributeDefinition? Definition { get; init; }
Property Value
Value
The attribute value as encoded (ATTL and ATVL).
public S57AttributeValue Value { get; init; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.