Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.