Skip to main content

Convert between Decimal Degrees and MGRS coordinates

Project description

Python code for converting between decimal degrees and MGRS.

Functions:

dd2mgrs: Decimal Degrees to MGRS

mgrs2dd: MGRS to Decimal Degrees

To install:

pip install mgrsconv

Sample usage:

from mgrsconv import *

mgrs2dd("31N AA 66021 00000")

Sample output:

(True, 0.0, -3.976393174348989e-06)

"True" in this case means the conversion was successful, the coordinates functionally represent 0 degrees latitude and 0 degrees longitude in decimal.

Package available here: https://pypi.org/project/mgrsconv/

GitHub: https://github.com/nousernamesavailabel/MGRSConv

Planning for next version to include DMS coordinates.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mgrsconv-0.0.11.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mgrsconv-0.0.11-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file mgrsconv-0.0.11.tar.gz.

File metadata

  • Download URL: mgrsconv-0.0.11.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for mgrsconv-0.0.11.tar.gz
Algorithm Hash digest
SHA256 2a500c0bdcc282eeb47a8a69fd63cf5de2c2fc11a0c53ad21cde780d9c107101
MD5 f7aeee2db611f6c6567026e4d78c8b3a
BLAKE2b-256 b4f8bdf64c30f55da860fd909f413698c631f87be8498b9a5360ad00c0815d61

See more details on using hashes here.

File details

Details for the file mgrsconv-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: mgrsconv-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for mgrsconv-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 c790ff55d95b85a7b594569e3f77675825df18a11f1000449ba00033ee754d23
MD5 62921dddd4e95ea59d72b20b874474fa
BLAKE2b-256 d9822306c18855e3719790d04f9d78bed887872c50cfd81df4d18d795a3979db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page