Click or drag to resize

IDfsProjection Interface

Defines a projection and its coordinate transforms.

You can use the

DHI.Projections
to handle the difference coordinate systems involved in a dfs file. Also see there for detailed documentation.

The WKTString is a WKT string for a spatial reference system. A number of abbreviated strings also exists, i.e., "UTM-33" for a WGS-84 UTM zone 33 projection, and "LONG/LAT" for WGS-84 geographical coordinates.

There are 3 levels of coordinates: Geographical coordinates (longitude, latitude) in degrees, projection coordinates (easting, northing), and model/user defined coordinates (x,y).

All coordinates in a dfs file are stored in model coordinates.

The WKTString defines which ellipsoid the geographical coordinates use (example: WGS-84).

The WKTString defines the mapping from geographical coordinates to projection coordinates.

The Longitude, Latitude and Orientation defines the origin and the orientation of the model coordinates. It is used to move and rotate the model coordinates, i.e., a dfs2 file with a 2D equidistant axis defines its model coordinate origin and orientation here (and not in its axis definition, though that would also be possible).

See Orientation for the definition of the orientation. The model coordinates are rotated around its origin.

If Orientation is zero, and Longitude and Latitude matches the origin of the projection coordinate system, then projection coordinates equals model coordinates. Example: UTM-31 has projection origin at (lon,lat) = (3,0).

Namespace:  DHI.Generic.MikeZero.DFS
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public interface IDfsProjection

The IDfsProjection type exposes the following members.

Properties
  NameDescription
Public propertyLatitude
Origin of model coordinates.
Public propertyLongitude
Origin of model coordinates.
Public propertyOrientation
Orientation of model coordinates. The rotation from true north to the model coordinate y-axis in degrees, measured positive clockwise.
Public propertyType
Type of projection. Old files that does not define a projection can have a Undefined. All new files will have projection information.
Public propertyWKTString
WKT string for a spatial reference system.
Top
See Also