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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mgrsconv-0.0.11.tar.gz | 4.2 kB | Without provenance | Details for mgrsconv-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mgrsconv-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for mgrsconv-0.0.11-py3-none-any.whl |
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
|
Security for mgrsconv 0.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.