WorldWindJava icon indicating copy to clipboard operation
WorldWindJava copied to clipboard

PolarCoordConverter Logic error

Open christopherpicard opened this issue 7 years ago • 2 comments

There is a logic error in the PolarCoordConverter. The else block on line 325 should have curly brace around lines 326 and 327. Currently written line 327 is executed regardless of the southern hemisphere flag. This results in an incorrect northing value when in the northern hemisphere.

christopherpicard avatar Nov 03 '18 18:11 christopherpicard

Actually, since the variable 'Southern_Hemisphere' is non-zero for negative latitudes, it's the northing for southern hemisphere values that's incorrect.

Thank you very much for noting this.

gbburkhardt avatar Nov 05 '18 13:11 gbburkhardt

See also: https://github.com/NASAWorldWind/WorldWindJava/pull/157

gbburkhardt avatar Nov 05 '18 14:11 gbburkhardt