Table of Contents

Class S57SpatialRecord

Namespace
EncDotNet.S57.Charts
Assembly
EncDotNet.S57.dll

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

source S57VectorRecord

Properties

Attributes

Gets the attributes associated with this spatial object.

public IReadOnlyList<S57AttributeValue> Attributes { get; }

Property Value

IReadOnlyList<S57AttributeValue>

RecordName

Gets the record name that uniquely identifies this spatial object.

public S57RecordName RecordName { get; }

Property Value

S57RecordName

RecordVersion

Gets the record version.

public int RecordVersion { get; }

Property Value

int

UpdateInstruction

Gets the update instruction for this record.

public S57UpdateInstruction UpdateInstruction { get; }

Property Value

S57UpdateInstruction

Methods

Create(S57VectorRecord)

Creates the appropriate strongly-typed spatial record from a generic vector record.

public static S57SpatialRecord Create(S57VectorRecord source)

Parameters

source S57VectorRecord

The source vector record.

Returns

S57SpatialRecord

A strongly-typed spatial record.

Exceptions

ArgumentException

Thrown when the record type is not recognized.