Does anyone have any concise examples or code converting from UTM coordinate system to Lat/Long and vice versa? I haven’t been able to find a good example or algorithm for this.
…
Found these, Utm.cpp and Utm.h modules, part of a larger program, and I haven’t verified correctness to my satisfaction yet, but …
http://www.koders.com/cpp/fid487B83C3C9 … x?s=string
http://www.koders.com/cpp/fid56D52408FA … x?s=string
Michael
The gold standard for UTM/UPS to MGRS/UPS to Lat/Lon using user selected datum and ellipsoid is GEOTRANS created and published by the USA government. This is THE library to use for accurate conversions.
The library can be hacked to include just what you want. If you don’t care about MGRS then you can exclude that module. Code is free an available with a quick google of “GEOTRANS download”