GroundSampleDistance

Description

sealed class Tinman.Terrain.Georef.GroundSampleDistance

Helper class for computing the ground sample distance for arbitrary raster coordinates.

Public / Methods

Compute


[Pure]
public method Compute → (2)

raster in : Vec2D

The raster coordinates at which to compute the ground sample distance.

unit opt : UnitOfMeasure = null

The unit of measure. If null, UnitOfMeasure.Metre will be used.

returns → Vec4D

The ground sample distance values:
Vec4D.X: Ground sample distance for a raster step of (1|0), i.e. along the X-axis.
Vec4D.Y: Ground sample distance for a raster step of (0|1), i.e. along the Y-axis.
Vec4D.Z: Edge length of square that has the same area as the parallelogram defined by the ground vectors corresponding to the raster steps of (1|0) and (0|1).
Vec4D.W: Angle (in degrees) between the ground vectors corresponding to the raster steps of (1|0) and (0|1).

Computes the ground sample distance of this raster.