Some basic (but functional) php code, I cobbled together: http://www.nearby.org.uk/google/phpcoord-mgrs.phps
Might help in some way? On 9 February 2010 22:03, Michal Migurski <[email protected]> wrote: > *gurgle* I was hoping to stick to short Python functions. Thanks for the > pointer, maybe there's something I can salvage from there! > > -mike. > > On Feb 9, 2010, at 1:43 PM, George Demmy wrote: > >> Hi Mike, >> >> It's essentially a table look-up. It's explained in detail in the DMA >> Tech Manual. However, there is a fairly clean C implementation for >> doing this with Geotrans -- a calculator for converting geographic >> coordinates that's pretty nifty in its own right. They also have a >> module for USNG, which is very similar. >> >> http://earth-info.nga.mil/GandG/geotrans >> >> HTH, >> >> George Demmy >> >> On Tue, Feb 9, 2010 at 9:26 PM, Michal Migurski <[email protected]> wrote: >>> >>> I'm trying to understand how to convert between lat/lon, UTM, and MGRS. >>> >>> UTM is a piece of cake, but MGRS is confusing. I'm looking at the >>> wikipedia >>> article, and I don't understand how to reliably determine the SQ_ID, "FJ" >>> in >>> the example here: >>> http://en.wikipedia.org/wiki/Military_grid_reference_system >>> >>> What's the process for determining those 100km square areas? >>> >>> -mike. >>> >>> ---------------------------------------------------------------- >>> michal migurski- [email protected] >>> 415.558.1610 >>> >>> >>> >>> >>> _______________________________________________ >>> Geowanking mailing list >>> [email protected] >>> http://geowanking.org/mailman/listinfo/geowanking_geowanking.org >>> >> >> _______________________________________________ >> Geowanking mailing list >> [email protected] >> http://geowanking.org/mailman/listinfo/geowanking_geowanking.org >> > > ---------------------------------------------------------------- > michal migurski- [email protected] > 415.558.1610 > > > > > _______________________________________________ > Geowanking mailing list > [email protected] > http://geowanking.org/mailman/listinfo/geowanking_geowanking.org > -- Barry - www.nearby.org.uk - www.geograph.org.uk - _______________________________________________ Geowanking mailing list [email protected] http://geowanking.org/mailman/listinfo/geowanking_geowanking.org
