Table of Contents

Class CoverageExtent

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

Computes the geographic (WGS84, EPSG:4326) footprint of a coverage grid, reprojecting from the grid's native CRS when that CRS is projected (e.g. an S-102 tile in UTM zone 31N). S-100 gridded coverages name their georeferencing attributes gridOrigin*/gridSpacing*Latitudinal / *Longitudinal regardless of CRS, so for a projected grid those values are native metres (northing/easting), not degrees — a raw BoundingBox built from them is not WGS84.

public static class CoverageExtent
Inheritance
CoverageExtent
Inherited Members

Remarks

Callers that publish a WGS84 extent (e.g. the MCP dataset catalogue's LoadedDataset.Bounds, documented as decimal degrees WGS-84) must use this helper for projected grids; otherwise geographic point-in-bounds tests silently fail on UTM tiles. See S-102 Edition 3.0.0 §12 (CRS) and S-100 Part 10c §10.2.1.2 (grid georeferencing attributes).

Methods

ToWgs84Bounds(CoverageMetadata, ICrsTransformFactory)

Computes the WGS84 bounding box of the supplied coverage metadata, reprojecting the grid's native corner extent through transformFactory when the grid CRS is projected. Returns null when the grid is degenerate (zero rows/columns).

public static BoundingBox? ToWgs84Bounds(CoverageMetadata metadata, ICrsTransformFactory transformFactory)

Parameters

metadata CoverageMetadata

Coverage metadata carrying the grid georeferencing and horizontal CRS.

transformFactory ICrsTransformFactory

Factory used to build the native → WGS84 transform for projected grids.

Returns

BoundingBox