Class NoaaEncFacets
- Namespace
- EncDotNet.S100.Collections.Noaa
- Assembly
- EncDotNet.S100.Collections.dll
The states, Coast Guard districts and regions present in a NOAA ENC product catalogue, with cell counts and download sizes, for choosing a NoaaEncFilter.
public sealed record NoaaEncFacets : IEquatable<NoaaEncFacets>
- Inheritance
-
NoaaEncFacets
- Implements
- Inherited Members
Constructors
NoaaEncFacets(IReadOnlyList<CatalogFacetValue>, IReadOnlyList<CatalogFacetValue>, IReadOnlyList<CatalogFacetValue>)
The states, Coast Guard districts and regions present in a NOAA ENC product catalogue, with cell counts and download sizes, for choosing a NoaaEncFilter.
public NoaaEncFacets(IReadOnlyList<CatalogFacetValue> States, IReadOnlyList<CatalogFacetValue> CoastGuardDistricts, IReadOnlyList<CatalogFacetValue> Regions)
Parameters
StatesIReadOnlyList<CatalogFacetValue>Per-state counts, by state code.
CoastGuardDistrictsIReadOnlyList<CatalogFacetValue>Per-district counts, by district number.
RegionsIReadOnlyList<CatalogFacetValue>Per-region counts, by region number.
Properties
CoastGuardDistricts
Per-district counts, by district number.
public IReadOnlyList<CatalogFacetValue> CoastGuardDistricts { get; init; }
Property Value
Regions
Per-region counts, by region number.
public IReadOnlyList<CatalogFacetValue> Regions { get; init; }
Property Value
States
Per-state counts, by state code.
public IReadOnlyList<CatalogFacetValue> States { get; init; }
Property Value
Methods
Compute(NoaaEncProductCatalog, bool)
Computes the facets of catalog, counting only cells
that are not cancelled unless includeCancelled is set.
public static NoaaEncFacets Compute(NoaaEncProductCatalog catalog, bool includeCancelled = false)
Parameters
catalogNoaaEncProductCatalogincludeCancelledbool
Returns
Summarize(NoaaEncProductCatalog, NoaaEncFilter)
Summarises what filter selects from
catalog: each cell counts once even when it lies in
several selected states, districts or regions.
public static (int CellCount, long TotalBytes) Summarize(NoaaEncProductCatalog catalog, NoaaEncFilter filter)
Parameters
catalogNoaaEncProductCatalogfilterNoaaEncFilter