-1

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?

3
  • 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? Commented Aug 5, 2013 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. Commented Aug 5, 2013 at 9:59
  • @pranitkothari Have a look to almost same question stackoverflow.com/questions/9340485/… Commented Aug 5, 2013 at 10:54

3 Answers 3

2

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

2

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.

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

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.