Table of Contents

Class SurfacePart

Namespace
EncDotNet.S100.Features
Assembly
EncDotNet.S100.Core.dll

One surface of a feature: an exterior ring and the interior rings (holes) that belong to it.

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

Remarks

A feature may reference several surfaces (an S-100 Part 10a feature record's spatial association field repeats), for example a depth area split by the cell boundary. Each must be filled, outlined and queried on its own: joining their exterior rings into one ring draws and measures segments across the gaps between them (issue #643).

Constructors

SurfacePart(IReadOnlyList<GeoPosition>, IReadOnlyList<IReadOnlyList<GeoPosition>>)

One surface of a feature: an exterior ring and the interior rings (holes) that belong to it.

public SurfacePart(IReadOnlyList<GeoPosition> ExteriorRing, IReadOnlyList<IReadOnlyList<GeoPosition>> InteriorRings)

Parameters

ExteriorRing IReadOnlyList<GeoPosition>

The exterior ring, in (latitude, longitude) order.

InteriorRings IReadOnlyList<IReadOnlyList<GeoPosition>>

The interior rings (holes) of this surface.

Remarks

A feature may reference several surfaces (an S-100 Part 10a feature record's spatial association field repeats), for example a depth area split by the cell boundary. Each must be filled, outlined and queried on its own: joining their exterior rings into one ring draws and measures segments across the gaps between them (issue #643).

Properties

ExteriorRing

The exterior ring, in (latitude, longitude) order.

public IReadOnlyList<GeoPosition> ExteriorRing { get; init; }

Property Value

IReadOnlyList<GeoPosition>

InteriorRings

The interior rings (holes) of this surface.

public IReadOnlyList<IReadOnlyList<GeoPosition>> InteriorRings { get; init; }

Property Value

IReadOnlyList<IReadOnlyList<GeoPosition>>