pe_geog2_to_geog1

Transforms between geographic coordinate systems in the opposite direction of a PE_GEOGTRANS.

Usage syntax

int pe_geog2_to_geog1 (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 z coordinates. May be a NULL pointer. If so, all heights are assumed to be zero.
Description

Applies a geographic (datum) transformation in the opposite 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_geog2_to_geog1(gt,2,pnt,z);