Table of Contents

Class GeoPolygon

Namespace
EncDotNet.S100.Collections
Assembly
EncDotNet.S100.Collections.dll

One coverage polygon: an exterior ring and zero or more holes, with (latitude, longitude) vertices in EPSG:4326.

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

Constructors

GeoPolygon(IReadOnlyList<GeoPosition>)

Creates a polygon with no holes.

public GeoPolygon(IReadOnlyList<GeoPosition> exterior)

Parameters

exterior IReadOnlyList<GeoPosition>

GeoPolygon(IReadOnlyList<GeoPosition>, IReadOnlyList<IReadOnlyList<GeoPosition>>)

One coverage polygon: an exterior ring and zero or more holes, with (latitude, longitude) vertices in EPSG:4326.

[JsonConstructor]
public GeoPolygon(IReadOnlyList<GeoPosition> Exterior, IReadOnlyList<IReadOnlyList<GeoPosition>> Holes)

Parameters

Exterior IReadOnlyList<GeoPosition>

The exterior ring's vertices.

Holes IReadOnlyList<IReadOnlyList<GeoPosition>>

The interior rings' vertices.

Properties

Exterior

The exterior ring's vertices.

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

Property Value

IReadOnlyList<GeoPosition>

Holes

The interior rings' vertices.

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

Property Value

IReadOnlyList<IReadOnlyList<GeoPosition>>