Table of Contents

Class CatalogRouteCheckSources

Namespace
EncDotNet.S100.Datasets.Pipelines.Navigation
Assembly
EncDotNet.S100.Datasets.Pipelines.dll

Builds the RouteCheckSources every route check reads from loaded datasets.

public static class CatalogRouteCheckSources
Inheritance
CatalogRouteCheckSources
Inherited Members

Remarks

The bundle uses S-101 cells (and S-401, and translated S-57) for charted features and regulated areas, S-102 surfaces with an S-101 fallback for charted depth, S-104 grids and station series for water level, S-122 datasets for protected areas, and S-124 datasets for navigational warnings. Other products are ignored.

Each cell's features and spatial index are built on first use and kept, and the depth, water-level and warning sources are built the first time a check reads them. So build the sources once per set of loaded datasets (RouteCheckSourceCache does that) and check as often as the route changes. Every source is safe to call from several threads at once.

Methods

FromDatasets(IEnumerable<LoadedDataset>, ICrsTransformFactory, RouteCheckSourceOptions?)

Builds the sources from a catalog snapshot.

public static RouteCheckSources FromDatasets(IEnumerable<LoadedDataset> datasets, ICrsTransformFactory transforms, RouteCheckSourceOptions? options = null)

Parameters

datasets IEnumerable<LoadedDataset>

The loaded datasets, such as Datasets.

transforms ICrsTransformFactory

Reprojects WGS-84 into a projected S-102 or S-104 grid's native CRS.

options RouteCheckSourceOptions

Tuning, or null for Default.

Returns

RouteCheckSources

The sources.