I want to convert Lat/Long to UTM. When I search on net I am getting completely different formulas.

e.g. Lat/Long, 21.0909,79.067635

How to convert it to UTM?

  • 1
    Please clarify what is your overall task: is it batch processing of a text-file or something else? Would you like to do it via script using existing libraries or via GUI or all you need is a formula? – SS_Rebelious Aug 5 '13 at 9:32
  • @SS_Rebelious I need to use in my C++ code. We need to convert Lat/Long to UTM to perform map related operations. – Pranit Kothari Aug 5 '13 at 9:59
  • @pranitkothari Have a look to almost same question stackoverflow.com/questions/9340485/… – Sunil Aug 5 '13 at 10:54

The open source GIS Whitebox Geospatial Analysis Systems (http://www.uoguelph.ca/~hydrogeo/Whitebox/) contains a tool called Coordinate System Transformations that can be used to convert either shapefile or raster files to UTM from lat/long or vice versa. You can also look at the specific algorithm that I used for the conversions here: http://code.google.com/p/whitebox-geospatial-analysis-tools/source/browse/trunk/ConversionTools/src/plugins/CoordinateSystemTransformation.java

enter image description here


I suppose you are not interested in studying geodesy, so you should just use proj4 C++ API for your project for coordinate transformation tasks.

As to the formulas, you may read this guide (one of the EPSG Guiding notes). Coordinate transformation for TM/UTM described there starting from page 45.

  • The link to “this guide” is no longer available ☹ – mirabilos Dec 30 '14 at 13:42
  • @mirabilos, ty for the information. New link provided - check it out. – SS_Rebelious Dec 30 '14 at 22:50

You are most welcome to copy my calculations from here Test of ORACLE DB functions converting lat-long to utm and mgrs with real data known to be correct? As far as i know the utm function works for everywhere while the MGRS works for everywhere except the poles. That formulas has been random check with www.earthpoint.us/Convert.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.