Class S101ToS57FeatureRedirect
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
TargetS101ToS57FeatureRuleThe rule to apply when the condition matches.
AttributestringThe top-level S-101 simple attribute tested, or
nullto test the primitive only.ValuesIReadOnlyList<string>The attribute values that match; empty to match a Boolean attribute that is true.
PrimitivesIReadOnlyList<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
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
Primitives
The S-101 primitives that match; empty for any.
public IReadOnlyList<S57GeometricPrimitive> Primitives { get; init; }
Property Value
Target
The rule to apply when the condition matches.
public S101ToS57FeatureRule Target { get; init; }
Property Value
Values
The attribute values that match; empty to match a Boolean attribute that is true.
public IReadOnlyList<string> Values { get; init; }