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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mgrsconv-0.0.7.tar.gz
  • Upload date:
  • Size: 7.3 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.7.tar.gz
Algorithm Hash digest
SHA256 96787ddd59ce87eb21de760211f77c4510ffba9b8446e6efffce5dadbcb62206
MD5 ca3024df2f70637f131d2376c942ac02
BLAKE2b-256 9ca2dda9e5732ec385ff8fa98d584a4fec240feb32198078de70ec93507475a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mgrsconv-0.0.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6c23e71289c3d7b7e9c061a255f3bc9a058c59fae6aca4eb4159e79d6c6f01a0
MD5 11294a5c8f346bdf38cd7e92ea381b51
BLAKE2b-256 6d4c394581a73e7ecee613bdbe6028d093ca9e03b4414c617910a6fded0e4371

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