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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mgrsconv-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 a30c69a1973d3c62083d56390bd2d1d70da0931f8b06ffea2ab8affbbf5edcf8
MD5 9bc34af8e306c745267a9ba79b56b0f7
BLAKE2b-256 c1b44ab2171af46bba81f03543fb6f5d94fa338b8a5f43c996d78c5d299859f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mgrsconv-0.0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 693d1656452b0e00ea81b988db7d9f174847ff6520ba7ce4c1ab496e5736153b
MD5 5b2a8d4b4fbe0b9aa096c8540cf0dc48
BLAKE2b-256 725aa4b18c91bbcbf50d4c54e549e867c9b68aa842812ed7ba806295d3ee10e5

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