Closed zplett closed 6 years ago
I downloaded the current repository locally which fixed the above issue but forcing a lat/lon pair from one zone to another isn't changing the outcome of the UTM easting/northing values as it should. For instance:
lat: 0.0222750053229278 lon: -79.9609177347527
Is inherently in zone 17 N, forcing it into 17 M (crossing from the northern to southern hemisphere) should change the output UTM values but that doesn't seem to be happening.
Hi @zplett! Did you close the issue because you solved your problem?
I believe I solved the issue by changing line 243 (in conversion.py):
elif negative(latitude): northing += 10000000
to:
elif zone_letter <= 'M': northing += 10000000
However I wanted to review this on my own to make sure it is correct before trying to merge.
I'm trying to use the library to convert a lat / long coordinate to utm specifying the zone letter and zone number. An instance of this can be taken from one of the unit tests:
Locally running the line:
UTM.from_latlon(40.71435, -74.00597, 19, 'T')
Gives the error: