Degree 2 UTM conversion error
Status: Beta
Brought to you by:
ct2gnl
I think it Incorrectly returns y when degree is less
then 0 (i.e. in the southern hemisphere) when using:
void DegToUTM (double lat, double lon, char *zone,
double *x, double *y)
found problem at ~line 67 of utm.c (in the above function):
/* false northing for southern hemisphere */
if (lat < 0.0)
*y = 10000000.0 - *y;
Think it should be:
/* false northing for southern hemisphere */
if (lat < 0.0)
*y = 10000000.0 + *y;
cheers chaps.