Skip to main content
Release files added late

3 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

mgrs: Converting to and from MGRS and Decimal Degrees

GeoTrans provides C code for converting to and from MGRS, but well, it’s C code :). This is a simple ctypes wrapper around two of the MGRS-related functions in GeoTrans.

This library has an internal copy of some of the files from GeoTrans 2.4.2.

ChangeLog

1.3.3

1.3.2

  • Better Windows support

  • Bug fix for 3 digit longitudes

1.3.1

  • Python 3.x support

  • Allow user to override precision in UTMToMGRS

Usage

In a nutshell:

>>> import mgrs

>>> latitude = 42.0
>>> longitude = -93.0

>>> m = mgrs.MGRS()
>>> c = m.toMGRS(latitude, longitude)
>>> c
'15TWG0000049776'

>>> d = m.toLatLon(c)
>>> d
(41.999997975127997, -93.000000000000014)

>>> y = '321942.29N'
>>> yd = m.dmstodd(y)
32.328414

>>> d, m, s = m.ddtodms(32.328414)
>>> d, m, s
(32.0, 19.0, 42.290400)

You can also control the precision of the MGRS grid with the MGRSPrecision arguments in .toMGRS(). Other than that, there isn’t too much to it.

Metadata

Release files for mgrs 1.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Files added late

3 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for mgrs 1.3.4
File Size Uploaded Provenance Actions
mgrs-1.3.4.tar.gz 26.6 kB Without provenance Details for mgrs-1.3.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mgrs 1.3.4
File Interpreter ABI Platform Actions
mgrs-1.3.4-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for mgrs-1.3.4-cp36-cp36m-win_amd64.whl
mgrs-1.3.4-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details for mgrs-1.3.4-cp35-cp35m-win_amd64.whl
mgrs-1.3.4-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details for mgrs-1.3.4-cp27-cp27m-win32.whl

Total release size: 89.6 kB

Release files / mgrs-1.3.4.tar.gz

Download URL mgrs-1.3.4.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2740fe58d10c99cfd277311e1ceb491bc55bf5f417dbdd1e3d901ef2e1072fff
BLAKE2b-256 checksum
How to use checksums
e7fa07a036a01e7e7ec91a089788629c2da3ddc8769200652b7e2db1edce932e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mgrs-1.3.4-cp36-cp36m-win_amd64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL mgrs-1.3.4-cp36-cp36m-win_amd64.whl
Size 21.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
5fefd9b9e95287b280fa5ce844d8e7215548081497c900bfa2e50f13f1f132ed
BLAKE2b-256 checksum
How to use checksums
f71cb79f94164b2bf3930148912d20906188d8f6fdb969c80508f0d0c5351145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mgrs-1.3.4-cp35-cp35m-win_amd64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL mgrs-1.3.4-cp35-cp35m-win_amd64.whl
Size 21.8 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
fa55fd2a19b9ec9ae473e9d200b3ba1d35b392e9b9e763fdec37471517baf0c6
BLAKE2b-256 checksum
How to use checksums
45e86effbc95caa35e24be48e13ede63c5e422fd6a680a1130b014ca06520f73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mgrs-1.3.4-cp27-cp27m-win32.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL mgrs-1.3.4-cp27-cp27m-win32.whl
Size 19.3 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
4153b0dd5013854df362956fcbb11b72bbdd58f6d4ab8eab192a6dc20e4a332c
BLAKE2b-256 checksum
How to use checksums
4543ec2acfa2b1c33def88085d82654d785ff1ad39e8fed802bd87b5ab839375
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mgrs 1.3.4

Upload timing

Release files added late

3 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page