GridReprojectorGridInfo Class

Grid info - defining origin, size and projection of grid

Definition

Namespace: DHI.Projections
Assembly: DHI.Projections (in DHI.Projections.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class GridInfo
Inheritance
Object    GridReprojectorGridInfo

Constructors

GridReprojectorGridInfoInitializes a new instance of the GridReprojectorGridInfo class

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

Dx Space between each gridpoint in the x direction
Dy Space between each gridpoint in the y direction
ElementCenterValues Bool indicating whether the grid is node based (false) or element/cell based (true)

Default is true;

Node based grid means that values are defined in grid line intersection point

Element center based grid means that values are defined in the center of the rectangle bounded by 4 grid lines.

LatOrigin Origin latitude coordinate of local grid coordinates.
LonOrigin Origin longitude coordinate of local grid coordinates.
Orientation Orientation of local grid coordinates. The rotation from true north to the model coordinate y-axis in degrees, measured positive clockwise.
OriginInFirstElementCenter Flag indicating if the projection origin is in the center of the first grid cell (true) or in the lower left corner of the first grid cell (false).

Only applicable when ElementCenterValues is true.

Default is true.

ProjectionString A string in the WKT format for a spatial reference system, or one of the abbreviations
X0 Relative offset to origin in the x direction
XCount Number of data points in the x direction
Y0 Relative offset to origin in the y direction
YCount Number of data points in the y direction

See Also