pe_geog1_to_geog2

Transforms between geographic coordinate systems in the true order of a PE_GEOGTRAN

Usage syntax

int pe_geog1_to_geog2 (PE_GEOGTRAN geogtran, int n, double coord[ ][2], double h[ ]);

Parameters
geogtran Geographic transformation object
n Number of points
coord[ ][2] Two-dimensional array of points
h Array of ellipsoidal heights; may be a NULL pointer, if so, all heights are assumed to be zero.
Description

Applies a geographic (datum) transformation in the same direction as the PE_GEOGTRAN to the specified array of points

Different geographic transformation methods require different types of height (or depth) values. For example, the geocentric translation method uses ellipsoidal heights. The use of heights referenced to other surfaces, such as sea level, may result in incorrect results.

Returns

Number of points projected successfully

Examples

double pnt[2][2] = {{10,20},{10,30}};
double z[2] = {{200},{189}};
int out = pe_geog1_to_geog2(gt,2,pnt,z);