WorldWindJava
WorldWindJava copied to clipboard
PolarCoordConverter Logic error
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.
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.
See also: https://github.com/NASAWorldWind/WorldWindJava/pull/157