pe_proj_to_geog_center |
Converts a projected coordinate system to geographic coordinates but keeps the longitude values between ±p of the center longitude.
int pe_proj_to_geog_center (PE_PROJCS projcs, int n, double coord[ ][2], double center_lam);
projcs | Projected coordinate system object |
n | Number of points |
coord | Array of points |
center_lam | The center of longitude values. |
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.
Number of points projected successfully.
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);