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.ProjectionsAssembly: DHI.Projections (in DHI.Projections.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static string ConvertWkt2Proj4(
string wktProjectionString,
double[] datumShiftParameters
)
Public Shared Function ConvertWkt2Proj4 (
wktProjectionString As String,
datumShiftParameters As Double()
) As String
public:
static String^ ConvertWkt2Proj4(
String^ wktProjectionString,
array<double>^ datumShiftParameters
)
static member ConvertWkt2Proj4 :
wktProjectionString : string *
datumShiftParameters : float[] -> string
Parameters
- wktProjectionString
- Type: SystemString
Full WKT projection string - datumShiftParameters
- Type: SystemDouble
Optional array of datum shift parameters, null if not applicable.
Return Value
Type:
StringSee Also