pe_geogtran_from_string

Creates a geographic transformation object from its string representation

Usage syntax

PE_GEOGTRAN pe_geogtran_from_string (const char *buffer);

Parameters
buffer The string representation of the geographic transformation object
Description

Creates a geographic transformation object from its string representation

Returns

On success, a geographic transformation object; otherwise, a null pointer

Examples

PE_GEOGTRAN gt;

char *gt_metadata = “GEOGTRAN[\"AGD_1984_To_WGS_1984_2\",GEOGCS[\"GCS_Australian_1984\",
DATUM[\"D_Australian_1984\",SPHEROID[\"Australian\",6378160,298.25]],
PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.0174532925199433]],
GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",
SPHEROID[\"WGS_1984\",6378137,298.257223563]],PRIMEM[\"Greenwich\",0],
UNIT[\"Degree\",0.0174532925199433]],METHOD[\"Coordinate_Frame\"],
PARAMETER[\"X_Axis_Translation\",116],
PARAMETER[\"Y_Axis_Translation\",50.47],
PARAMETER[\"Z_Axis_Translation\",141.69],
PARAMETER[\"X_Axis_Rotation\",0.23],
PARAMETER[\"Y_Axis_Rotation\",0.39],
PARAMETER[\"Z_Axis_Rotation\",0.344],
PARAMETER[\"Scale_Difference\",0.0983]]”;

gt = pe_geogtran_from_string(gt_metadata);