Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Jun 18 '12 at 1:56

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

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
up vote 2 down vote accepted

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

or GeographicLib (Use the SetAltZone method).

share|improve this answer
Thanks @Lior, GeographicLib does the job nicely – iomartin Jun 19 '12 at 14:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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