Skip to content

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

Description

@Yehouda

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions