Click or drag to resize

Dfs2Reprojector Class

Class for reprojecting a source dfs2 file in one coordinate system to a target dfs2 file in another coordinate system.

The source grid may not be a regular grid in the target coordinate system, so re-gridding and interpolation is necessary.

Inheritance Hierarchy
SystemObject
  DHI.Generic.MikeZero.DFS.dfs123Dfs2Reprojector

Namespace:  DHI.Generic.MikeZero.DFS.dfs123
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class Dfs2Reprojector

The Dfs2Reprojector type exposes the following members.

Constructors
  NameDescription
Public methodDfs2Reprojector(IDfs2File, String)
Create a new DFS2 grid reprojector object
Public methodDfs2Reprojector(IDfs2File, Boolean, Boolean, String)
Create a new DFS2 grid reprojector object
Top
Properties
  NameDescription
Public propertyInterpolate
Bool specifying whether to interpolate (true) or take the closest value (false, default)
Public propertyOutsideValue
Value to set in target grid outside source grid, i.e. where target includes areas that are not covered by the source.

Default using the delete value of source file but can be overruled by a user defined value.

Public propertyReprojector
The reprojector class that is performing the reprojecting from one coordinate system to the other.

Any datum conversion parameters must be specified directly to the Reprojector

Available after calls to the any of the SetTarget methods.

Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodProcess
Process the dfs2 source file, creating target dfs2 file
Public methodSetTarget(String, Double)
Define target projection string, and orientation (towards projection north).

All other properties of the target GridInfo is calculated from the bounding box of source grid in the target local grid coordinate system.

Public methodSetTarget(String, Double, Int32, Int32)
Define target projection string, orientation (towards projection north), and number of grid points in the x and y direction in the target.

All other properties of the target GridInfo is calculated from the bounding box of source grid in the target local grid coordinate sysetm.

Public methodSetTarget(String, Double, Double, Double, Int32, Double, Double, Int32, Double, Double)
Fully specify the target gridinfo.
Public methodSetTarget(String, Double, Double, Double, Int32, Double, Double, Int32, Double, Double, Boolean, Boolean)
Fully specify the target gridinfo, including whether grid is node-based or element/cell-center based and where the origin of the projection is.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also