[Proj] convert latlon to UTM without knowing the zone beforehand
charles.karney at sri.com
Wed Dec 17 08:45:39 EST 2014
The GeoConvert utility from GeographicLib might serve your needs. For
$ echo 33.3N 44.4E | GeoConvert -u -p 3
38n 444140.545 3684706.356
Here is the man page
to try it out. This page also has a link for downloading GeographicLib.
On 12/17/2014 08:34 AM, Margherita Di Leo wrote:
> I need to convert any pairs of geographic coordinates (latlon) into UTM.
> This needs to run automatically so that I need an automatic tool to tell
> for any pairs which UTM zone it belongs to before converting. Of course
> I can encode in my script all possible cases, but before reinventing the
> wheel i wanted to ask if there is such tool already within proj.4 library.
> Thank you in advance
> Best regards,
> Dr. Margherita DI LEO
> Scientific / technical project officer
More information about the Proj