[Qgis-user] MGRS Coordinates: a recurrent question

Andre Joost andre+joost at nurfuerspam.de
Thu Nov 28 09:04:21 PST 2013


Am 28.11.2013 13:24, schrieb Alexandre Neto:
> Hello,
>
> In times I though about doing a python plugin for it, but I have never had
> the time to do it. I think that is a valid idea for a plugin as for
> instance Biologists and Botanics very often use MGRS to register species
> location.
>
> I believe that 2 option arise:
> 1 - ask some help to developers (qgis-developer at lists.osgeo.org) to create
> a core plugin in C

You don't have to invent the wheel a second time. GDAL has a silent 
implementation for MGRS:

https://svn.osgeo.org/gdal/trunk/gdal/frmts/nitf/mgrs.c

You only have to port the code to python, or write a wrapper around it.

Or have a look at other sources:
<http://gis.stackexchange.com/questions/15373/how-to-convert-mgrs-to-lat-long-or-utm>
<http://gis.stackexchange.com/questions/19469/convert-mgrs-using-gdaltransform>

The second already in python.

HTH,
André Joost




More information about the Qgis-user mailing list