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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mgrsconv-0.0.8.tar.gz.
File metadata
- Download URL: mgrsconv-0.0.8.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68e196196f665dc332763c7d55a2c0f0d36c9b62f36f0bc57014f42690d64b2
|
|
| MD5 |
7557bfbd25a74ef0e45edf66b8d124bd
|
|
| BLAKE2b-256 |
28c8820f9441eb0b269bc63f59447f51fa97e23a9814f82b5b34d6a82e510ad3
|
File details
Details for the file mgrsconv-0.0.8-py3-none-any.whl.
File metadata
- Download URL: mgrsconv-0.0.8-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4110f68beaadc73b640343f0f03c90339239124f38ef50e64de6823f65bfbea5
|
|
| MD5 |
e3503919baa9f44b683693174592d689
|
|
| BLAKE2b-256 |
b501c344ac8dcc5e915cc935303453a5fb14277682a981fd6b60e99cdf545538
|