ProjectionTranslatorConvertWkt2Proj4(String, Double) Method

Function that converts a map projection string in WKT (PRJ) format to PROJ.4 format.

Optional datum shift parameters to wgs84 datum (going to WGS84) can be provided, but you can also specify datumShiftParameters as null.

Datum shift parameter must be specified in order and unit as defined in the Proj.4 projection string: delta_x, delta_y, delta_z, Rx - rotation X, Ry - rotation Y, Rz - rotation Z, M_BF - Scaling. The three translation parameters are in meters. The rotational parameters are in seconds of arc. The scaling is the scale change in parts per million. In case of a 3 parameter conversion, only the 3 translation parameters needs to be specified.

Definition

Namespace: DHI.Projections
Assembly: DHI.Projections (in DHI.Projections.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static string ConvertWkt2Proj4(
	string wktProjectionString,
	double[] datumShiftParameters
)

Parameters

wktProjectionString  String
Full WKT projection string
datumShiftParameters  Double
Optional array of datum shift parameters, null if not applicable.

Return Value

String

See Also