pe_geogtran_new

Creates a new geographic transformation

Usage syntax

PE_GEOGTRAN pe_geogtran_new (const char *name, PE_GEOGCS geogcs1, PE_GEOGCS geogcs2, PE_METHOD method, PE_PARAMETER parameters[PE_PARM_MAX]);

Parameters
name Name of the new geographic transformation
geogcs1 The “from” geographic coordinate system
geogcs2 The “to” geographic coordinate system
method The geographic transformation method
parameters Any parameters needed by the method for the specific transformation
Description

Defines a new geographic transformation with the specified attributes. When creating the parameter array object, initialize all elements as null pointers. See pe_parameter_new for a sample.

Returns

On success, the new geographic transformation with the attributes equal to the corresponding arguments; on failure, a null pointer

Examples

PE_GEOGTRAN agd2gda = pe_geogtran_new("AGD84_to_WGS84", PE_GCS_AGD_1984,
PE_GCS_WGS_1984, PE_MTH_COORDINATE_FRAME, gt_par);