Skip to main content

Package for dealing with MGRS coordinates in Python

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.6.tar.gz (6.6 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.6-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mgrsconv-0.0.6.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for mgrsconv-0.0.6.tar.gz
Algorithm Hash digest
SHA256 2564ad84a65a2acbb564ba419196bb8a276f8eec4477e1a03c61af956610aeeb
MD5 2e7cc46d063fc1b9faefb7666fcddae5
BLAKE2b-256 86490c2101a1866e50eda6b6d51151f151758b397ae1e337a70cf52f43160e3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mgrsconv-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for mgrsconv-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6d29969c15e56c5e63d60775d5635d3fad70c425c2785d11961204d4cb1644f7
MD5 dfdc8b83933036f37545ffc9f292383e
BLAKE2b-256 0e87d403a286502006eadefbbc51374347b7bfd8dd9c8c5844b3c1dc0efa1a2b

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