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 see here that there is Fortran source code for going from USNG to lon/lat: http://www.ngs.noaa.gov/PC_PROD/USNG/

Is there some python or C/C++ code that does the same?

My understanding that this is not a function provided by Proj4/pyproj/GDAL, correct?

share|improve this question
    
osgeo-org.1803224.n2.nabble.com/MGRS-USNG-support-td2062733.html seems to suggest that you are correct that there is no proj4 support. It's from 2006 though. –  Paul Hiemstra Dec 23 '11 at 8:20
add comment

1 Answer

You can create Python interfaces to Fortran programs using f2py. According to the web site, this facilitates:

  • Calling Fortran 77/90/95, Fortran 90/95 module, and C functions from Python.
  • Accessing Fortran 77 COMMON blocks and Fortran 90/95 module data (including allocatable arrays) from Python.
  • Calling Python functions from Fortran or C (call-backs).
  • Automatically handling the difference in the data storage order of multi-dimensional Fortran and Numerical Python (i.e. C) arrays.

The first point might serve your needs.

share|improve this answer
    
Thanks. I might use this as a last resort... –  M Katz Jan 23 '12 at 6:23
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.