Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utm-to-lan-lon seems to assume northern hemisphere #2

Open
Yehouda opened this issue Feb 28, 2020 · 0 comments
Open

utm-to-lan-lon seems to assume northern hemisphere #2

Yehouda opened this issue Feb 28, 2020 · 0 comments

Comments

@Yehouda
Copy link

Yehouda commented Feb 28, 2020

The last utm-test-case in the test has negative latitude, and it fails for me (output below).
Using http://www.rcn.montana.edu/Resources/Converter.aspx (zone always 52):

lat/lon -29.343/130.803 => East/North 675044 / 6752662 southern hemisphere.
East/North 675044 / 6752662 southern hemisphere => lat/lon -29.343/130.803
East/North 675044 / 6752662 northern hemisphere => lat/lon 60.870/ 132.224

Calling utm:utm-to-lan-lon with East/North 675044 / 6752662 returns lat/lon 60.870/ 132.224,
i.e. the northern hemisphere values. So it somehow needs to know about the southern hemisphere.

-------------------------------------------------------- running the test:

CL-USER 78 > (5am::run! 'UTM:UTM-TO-LAT-LON)

Running test UTM-TO-LAT-LON ........ff
Did 10 checks.
Pass: 8 (80%)
Skip: 0 ( 0%)
Fail: 2 (20%)
Failure Details:

UTM-TO-LAT-LON []:
Could not convert { latitude: -29.3438753994D0, longitude: 130.8032226563D0, ellipsoid: GRS80, zone: 52 easting: 675064.43D0, northing: 6752564.671D0 } to latitude/longitude... got latitude 60.86957322749897D0.


UTM-TO-LAT-LON []:
Could not convert { latitude: -29.3438753994D0, longitude: 130.8032226563D0, ellipsoid: GRS80, zone: 52 easting: 675064.43D0, northing: 6752564.671D0 } to latitude/longitude... got longitude 132.2244754471396D0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant