Table of Contents

Class GeoCoverage

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

The coverage of a collection item as a multi-polygon in EPSG:4326.

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

Remarks

Rings are stored as published by the source, including any that cross the antimeridian; display code is responsible for normalising them.

Constructors

GeoCoverage(IReadOnlyList<GeoPolygon>)

The coverage of a collection item as a multi-polygon in EPSG:4326.

public GeoCoverage(IReadOnlyList<GeoPolygon> Polygons)

Parameters

Polygons IReadOnlyList<GeoPolygon>

The coverage polygons.

Remarks

Rings are stored as published by the source, including any that cross the antimeridian; display code is responsible for normalising them.

Properties

Polygons

The coverage polygons.

public IReadOnlyList<GeoPolygon> Polygons { get; init; }

Property Value

IReadOnlyList<GeoPolygon>

Methods

ComputeBounds()

The bounds of every exterior ring, or null when the coverage has no vertices.

public GeoBounds? ComputeBounds()

Returns

GeoBounds?

FromPolygons(IEnumerable<GeoPolygon>)

Builds a coverage from polygons, returning null when none has an exterior ring with at least three vertices.

public static GeoCoverage? FromPolygons(IEnumerable<GeoPolygon> polygons)

Parameters

polygons IEnumerable<GeoPolygon>

Returns

GeoCoverage