Table of Contents

Class S101ToS57FeatureRedirect

Namespace
EncDotNet.S100.Datasets.S57
Assembly
EncDotNet.S100.Datasets.S57.dll

A condition under which an S-101 feature converts to another S-57 object class (see Redirects), or creates a further object (see Companions).

public sealed record S101ToS57FeatureRedirect : IEquatable<S101ToS57FeatureRedirect>
Inheritance
S101ToS57FeatureRedirect
Implements
Inherited Members

Constructors

S101ToS57FeatureRedirect(S101ToS57FeatureRule, string?, IReadOnlyList<string>, IReadOnlyList<S57GeometricPrimitive>)

A condition under which an S-101 feature converts to another S-57 object class (see Redirects), or creates a further object (see Companions).

public S101ToS57FeatureRedirect(S101ToS57FeatureRule Target, string? Attribute, IReadOnlyList<string> Values, IReadOnlyList<S57GeometricPrimitive> Primitives)

Parameters

Target S101ToS57FeatureRule

The rule to apply when the condition matches.

Attribute string

The top-level S-101 simple attribute tested, or null to test the primitive only.

Values IReadOnlyList<string>

The attribute values that match; empty to match a Boolean attribute that is true.

Primitives IReadOnlyList<S57GeometricPrimitive>

The S-101 primitives that match; empty for any.

Properties

Attribute

The top-level S-101 simple attribute tested, or null to test the primitive only.

public string? Attribute { get; init; }

Property Value

string

ConsumesAttribute

Whether the tested attribute is used up by the redirect rather than converted as well (true for most: categoryOfLandmark 22 chooses CTRPNT and has no CATLMK there; false for a Lake whose status 5 makes it a RIVERS with STATUS 5).

public bool ConsumesAttribute { get; init; }

Property Value

bool

Primitives

The S-101 primitives that match; empty for any.

public IReadOnlyList<S57GeometricPrimitive> Primitives { get; init; }

Property Value

IReadOnlyList<S57GeometricPrimitive>

Target

The rule to apply when the condition matches.

public S101ToS57FeatureRule Target { get; init; }

Property Value

S101ToS57FeatureRule

Values

The attribute values that match; empty to match a Boolean attribute that is true.

public IReadOnlyList<string> Values { get; init; }

Property Value

IReadOnlyList<string>