Search code examples
c++google-mapsgoogle-maps-api-3google-earth

Conversion between latitude, longitude to UTM notation


I have locations coordinates in the form of latitude, longitude such as: 23⁰ 39' 24.8" N & 58⁰ 11' 36.5" E , see the pic below. But in my work place I use ArcGIS and it seems that doesn't support degree (latitude, longitude) form coordinates. I am planning now to write a C++ code to convert degree form to UTM notation, for example 23⁰ 39' 24.8" N & 58⁰ 11' 36.5E" to 2616726 N & 621702 E. I would like to know how can do such conversion?'

enter image description here

PS: E = East, N= North.


Solution

  • Wikipedia explains how to do this. Google earth can use decimal degree notiation.

    Edit: looking at your picture i think you want to convert to UTM? Wikipedia also has this formula.

    (note: check Wikipedias formulas with some other source before using)