Skip to main content

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.

Metadata

Release files for mgrsconv 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mgrsconv 0.0.11
File Size Uploaded
mgrsconv-0.0.11.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mgrsconv 0.0.11
File Interpreter ABI Platform
mgrsconv-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / mgrsconv-0.0.11.tar.gz

Download URL mgrsconv-0.0.11.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2a500c0bdcc282eeb47a8a69fd63cf5de2c2fc11a0c53ad21cde780d9c107101
BLAKE2b-256 checksum
How to use checksums
b4f8bdf64c30f55da860fd909f413698c631f87be8498b9a5360ad00c0815d61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / mgrsconv-0.0.11-py3-none-any.whl

Download URL mgrsconv-0.0.11-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c790ff55d95b85a7b594569e3f77675825df18a11f1000449ba00033ee754d23
BLAKE2b-256 checksum
How to use checksums
d9822306c18855e3719790d04f9d78bed887872c50cfd81df4d18d795a3979db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page