pe_proj_to_geog_center

Converts a projected coordinate system to geographic coordinates but keeps the longitude values between ±p of the center longitude.

Usage syntax

int pe_proj_to_geog_center (PE_PROJCS projcs, int n, double coord[ ][2], double center_lam);

Parameters
projcs Projected coordinate system object
n Number of points
coord Array of points
center_lam The center of longitude values.
Description

Applies the map projection’s inverse transformation to the specified array of points. The resulting longitude values are kept within ±p of the center longitude.

Returns

Number of points projected successfully.

Examples

double pnt[2][2] = {{500000,2000000},{700000,2200000}};
/* Return longitude values between 0 and 360 degrees. */
int out = pe_proj_to_geog_center(pcs,2,pnt,180);