1

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.

migrated from stackoverflow.com Jun 18 '12 at 1:56

This question came from our site for professional and enthusiast programmers.

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

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, privacy policy and cookie policy

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