Class S57SpatialRecord
Base class for all strongly-typed spatial records in an S-57 chart.
public abstract record S57SpatialRecord : IEquatable<S57SpatialRecord>
- Inheritance
-
S57SpatialRecord
- Implements
- Derived
- Inherited Members
Constructors
S57SpatialRecord(S57VectorRecord)
Initializes a new instance of the S57SpatialRecord class from a generic vector record.
protected S57SpatialRecord(S57VectorRecord source)
Parameters
sourceS57VectorRecord
Properties
Attributes
Gets the attributes associated with this spatial object.
public IReadOnlyList<S57AttributeValue> Attributes { get; }
Property Value
RecordName
Gets the record name that uniquely identifies this spatial object.
public S57RecordName RecordName { get; }
Property Value
RecordVersion
Gets the record version.
public int RecordVersion { get; }
Property Value
UpdateInstruction
Gets the update instruction for this record.
public S57UpdateInstruction UpdateInstruction { get; }
Property Value
Methods
Create(S57VectorRecord)
Creates the appropriate strongly-typed spatial record from a generic vector record.
public static S57SpatialRecord Create(S57VectorRecord source)
Parameters
sourceS57VectorRecordThe source vector record.
Returns
- S57SpatialRecord
A strongly-typed spatial record.
Exceptions
- ArgumentException
Thrown when the record type is not recognized.