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.10.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.10-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mgrsconv-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 8427725f57bd68f83b079494a4a9a00e51fcb7d2c3997af4905b664137bdf3aa
MD5 1ede30e5f63e1e9f67aaf005942a7863
BLAKE2b-256 6f39e3550c9675eda819ac14a6e0861786363e96a9d4d13bc09c3cf21338cbdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mgrsconv-0.0.10-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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2972e594b7a4d50c2f14155c55424491ca6becd0dfb0537e784a212097098f19
MD5 a0409ce8f9e01fec9459c0b5421eaf25
BLAKE2b-256 88ff2c164e21b311e7e0cc53aaea8497c22d8ab0b366fe9352af466d79667190

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