Click or drag to resize

ProjectionTranslatorConvertWkt2Proj4 Method (String, Double)

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.

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

Parameters

wktProjectionString
Type: SystemString
Full WKT projection string
datumShiftParameters
Type: SystemDouble
Optional array of datum shift parameters, null if not applicable.

Return Value

Type: String
See Also