#5 Degree 2 UTM conversion error

open
nobody
None
5
2002-12-26
2002-12-26
Anonymous
No

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.

Discussion


Log in to post a comment.