[gdal-dev] mgrs system

Frank Warmerdam warmerdam at pobox.com
Mon Mar 10 09:44:38 EDT 2008


Michele Sanges wrote:
> I need to convert coordinates from UTM to MGRS. How do I use the
> Convert_UTM_To_MGRS function from frmts/nitf/mgrs.c (mgrs.h in not
> installed in my system).

Michele,

The MGRS functions in frmts/nitf/mgrs.c are not part of the public GDAL
API.  If you want to use them, you will need to "reach in" to GDAL to get
the right include file.  On Win32 it is unlikely the entry points will be
exported from the DLL though this is not an issue on linux.

Basically, it is a "use at your own risk" undocumented capability.  It
exists in GDAL because it is used internally in the NITF driver.

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    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list