I need to convert Latitude/Longitude coordinates into UTM, in C++, specifying which zone to use.

I am working with locations that fall in two zones, and would like to project them all into one zone - since they are not too far from the border, I am hoping the error introduced by doing so won't be too much.

So far I had been using Chuck Gantz's library, which converts LL to UTM, but it does not support conversion from LL to UTM specifying which zone to use.

  • 1
    And how is C++ connected with this pure-algorithmic problem?
    – Spo1ler
    Commented Jun 15, 2012 at 20:10
  • Because I'm developing in C++ and need a library in that langugage.
    – iomartin
    Commented Jun 19, 2012 at 14:16

1 Answer 1


You can use MSP GEOTRANS (The UTM class receives a UTM zone override parameter)

or GeographicLib (Use the SetAltZone method).


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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