Metadata-Version: 1.0
Name: mgrs
Version: 1.0
Summary: MGRS coordinate conversion for Python
Home-page: https://github.com/hobu/pymgrs
Author: Howard Butler
Author-email: hobu@hobu.net
License: MIT
Description: .. _home:
        
        mgrs: Converting to and from MGRS and Decimal Degrees
        ------------------------------------------------------------------------------
        
        GeoTrans_ provides C code for converting to and from MGRS, but well, it's
        C code :).  This is a simple ctypes_ wrapper around two of the MGRS-related
        functions in GeoTrans_.
        
        This library has an internal copy of some of the files from GeoTrans_ 2.4.2.
        
        .. _`GeoTrans`: http://earth-info.nga.mil/GandG/geotrans/
        .. _`ctypes`: http://docs.python.org/library/ctypes.html
        
        
        
        Usage
        ------------------------------------------------------------------------------
        
        In a nutshell::
        
        >>> import mgrs
        
        >>> latitude = 42.0
        >>> longitude = -93.0
        
        >>> m = mgrs.MGRS()
        >>> c = m.toMGRS(latitude, longitude)
        >>> c
        '15TWG0000049776'
        
        >>> d = m.toLatLon(c)
        >>> d
        (41.999997975127997, -93.000000000000014)
        
        You can also control the precision of the MGRS grid with the MGRSPrecision
        arguments in .toMGRS().  Other than that, there isn't too much to it.
        
        
        
Keywords: gis coordinate conversion
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: C
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: Topic :: Database
