[Gdal-dev] UTM to MGRS.

Frank Warmerdam fwarmerdam at gmail.com
Wed Mar 30 09:49:21 EST 2005


On Wed, 30 Mar 2005 09:01:54 +0200, Michele Sanges
<michele.sanges at otomelara.it> wrote:
> Hi,
> 
> does OGR supports the coordinate transformation from the UTM system to MGRS (Military Grid Reference System) one?

Michele, 

Sorry, no OGR does not support MGRS.   It has been several months
since I did something with MGRS so my memory is a bit foggy on the
details, but I believe that MGRS coordinates interleave the X and Y
digits including some non-numeric prefixes to identify a grid square.
So it is hard to represent MGRS as a "coordinate system definition"
and a set of x/y points.   For that reason, I don't think it is really practical
to talk about having OGR support MGRS as a coordinate system. 

However, if you need to convert values to/from MGRS there is some
code for it buried in the NITF driver.  Try reviewing:

  gdal/frmts/nitf/mgrs.h

The MGRS code is derived from Geotrans. 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list