pe_nga_gt_code_to_factory_gt_code

Returns the factory code of the specified NGA datum keyword

Usage syntax

int pe_nga_gt_code_to_factory_gt_code(const char *ncode);

Parameters
ncode The string that represents the NGA datum object
Description

This function returns the factory code of the corresponding geographic (datum) transformation object of the specified NGA datum. NGA datums have 3 or 5 letter names like KEA and ADI-A.

Returns

On success, the factory code of a predefined geographic transformation; on failure, zero

Examples

int gt1_code;
const char *datum = "ADI-D";

gt1_code = pe_nga_gt_code_to_factory_gt_code(datum);