I am trying to do the following calculation:
- Given lat,lon of a point (center of a rectangular (in UTM) domain), I find its UTM coordinates.
- Given domain width and length, I find coordinate of its 4 corners in UTM
- Finally, I need to find lat,lon coordinates for the corners
I'm having a problem with step 2, because one of the corners is outside of the UTM zone in which the center point is located. So I get negative easting numbers and can't figure out how to do the lat,lon conversion. I'm supposing that I need to find the new UTM zone for that point, but I don't know exactly how. Any help will be appreciated.
Additional info: I'm using this little Python library to do the UTM<->lat,lon conversion https://github.com/Turbo87/utm It doesn't seem to handle negative eastings.