Click or drag to resize

MzMapProjection Class

Note: This API is now obsolete.

A map projection handles conversion from geographical coordinates (lon, lat) to projection coordintes (east, north).

The ProjectionString 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.

Inheritance Hierarchy
SystemObject
  DHI.Generic.CartographyMzMapProjection

Namespace:  DHI.Generic.Cartography
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
[ObsoleteAttribute("Use new DHI.Projections library")]
public class MzMapProjection

The MzMapProjection type exposes the following members.

Constructors
  NameDescription
Public methodMzMapProjection
Create and initialize a mapprojection with the specifed projection string.
Top
Properties
  NameDescription
Public propertyName
The short name of a projection.

The short name is not unique amongst all WKT projections

If the ProjectionString is not a WKT projection string, the ProjectionString itself is returned as the short name.

Public propertyProjectionString
Returns the WKT projection string, or one of the projection abbreviation strings.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGeo2Proj
Convert coordinates from geographical coordinates to projection coordinates
Public methodGeo2ProjRotation
Convert a rotation from true north into a rotation from map projection north

It subtracts the convergence value from the true north rotation value

The convertion depends on the geographical location.

Public methodGeo2Xyz
Convert coordinates from geographical coordinates to 3D coordinates.

The 3D coordinate system origin is at the earth center (ellipsoid center)

Public methodGetConvergence
Get the convergence (orientation towards true north) at the given geographical location.

The convergence is the angle measured clockwise from true north to the north-south gridline passing through the specified coordinate.

Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetOrigin
Get the geographical origin of the map projection
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsGeographical
Checks whether a projection string is using longitude/latitude coordinates
Public methodStatic memberIsValidProjection
Checks whether a projection string is a valid projection string
Public methodStatic memberIsValidUtmZone
Checks whether a projection string is a valid UTM zone projection string
Public methodStatic memberLongitude2UtmZone
Get the projection string for the UTM zone best matching the longitude coordinate
Public methodProj2Geo
Convert coordinates from projection coordinates to geographical coordinates
Public methodProj2GeoRotation
Convert a rotation from map projection north into a rotation from true north.

It adds the convergence value to the projection north rotation value

The convertion depends on the geographical location.

Public methodStatic memberProjectionOrigin
Returns the geographical origin of the projection defined by the projstring

If the projection string is not a valid WKT string, an exception is thrown.

Public methodStatic memberProjectionShortName
Get the short name out of a WKT projetion string.

The short name is not unique amongst all WKT projections

If the projString is not a WKT projection string, the projString itself is returned as the short name.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodXyz2Geo
Convert coordinates from 3D coordinates to geographical coordinates.

The 3D coordinate system origin is at the earth center (ellipsoid center)

Top
See Also