Table of Contents

Class GridMetadata

Namespace
EncDotNet.S100.Pipelines.Coverage
Assembly
EncDotNet.S100.Core.dll

Geometry of a regular, node-centred grid in its native CRS. Cell (row, col) lies at (OriginLongitude + col × SpacingLongitudinal, OriginLatitude + row × SpacingLatitudinal).

public class GridMetadata
Inheritance
GridMetadata
Inherited Members

Remarks

The member names follow the S-100 Part 10c grid attributes (gridOriginLatitude, gridSpacingLongitudinal, …), which keep those names whatever the CRS. For a geographic (EPSG:4326) grid the values are decimal degrees. For a projected grid (e.g. a UTM S-102 tile) the *Latitude / *Latitudinal members hold the northing and the *Longitude / *Longitudinal members the easting, in metres. Reproject through the owning coverage's CRS (HorizontalCRS) before treating them as geographic positions. Either spacing may be negative (e.g. top-down grids).

Properties

NumColumns

Number of grid columns (points along the longitude / easting axis).

public required int NumColumns { get; init; }

Property Value

int

NumRows

Number of grid rows (points along the latitude / northing axis).

public required int NumRows { get; init; }

Property Value

int

OriginLatitude

Y coordinate of cell (0, 0): latitude in degrees, or northing in native units for a projected grid.

public required double OriginLatitude { get; init; }

Property Value

double

OriginLongitude

X coordinate of cell (0, 0): longitude in degrees, or easting in native units for a projected grid.

public required double OriginLongitude { get; init; }

Property Value

double

SpacingLatitudinal

Distance between adjacent rows along the Y axis, in native CRS units (degrees or metres).

public required double SpacingLatitudinal { get; init; }

Property Value

double

SpacingLongitudinal

Distance between adjacent columns along the X axis, in native CRS units (degrees or metres).

public required double SpacingLongitudinal { get; init; }

Property Value

double