$npx skillfedfor your agent

mgrs

MGRS coordinate conversion for Python

With conditionsPyPI GISReleased Feb 2026269.6K downloads / mopermissive licensePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — mgrs-1.5.4-cp310-cp310-macosx_10_9_x86_64.whl · mgrs-1.5.4-cp310-cp310-macosx_11_0_arm64.whl · mgrs-1.5.4-cp310-cp310-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl
v1.5.4 · released 2026-02-03 · Python >=3.9

Yes, if you need MGRS coordinate conversion in a Python GIS or geospatial application. The package is stable, permissively licensed, has no dependencies, and offers pre-built wheels for modern Python versions. Install friction is moderate due to compiled components, but that is typical for geospatial libraries. The aging maintenance status (192 days since last release) is acceptable for a mature, feature-complete library with no known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; compiled wheels available for common platforms (Linux x86_64/aarch64, macOS, Windows) but may require build tools on unsupported architectures.
  • Medium install friction due to compiled wheels for multiple platforms and Python versions (3.9–3.12).
  • Package is aging but stable; last release 192 days ago with active repository (133 stars, last commit 2026-02-03).

License · maintenance · safety

permissive license (permissive) — MIT license (permissive) permits commercial and private use with minimal restrictions; attribution required but no copyleft obligations.

last release 2026-02-03 (192 days) · last repo commit 2026-02-03 · 133 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 269,550 downloads/mo, #8,258 on PyPI

Verify before relying

import mgrs

m = mgrs.MGRS()
latitude, longitude = 42.0, -93.0
mgrs_string = m.toMGRS(latitude, longitude)
print(mgrs_string)  # '15TWG0000049776'

coords = m.toLatLon(mgrs_string)
print(coords)  # (41.999997975127997, -93.000000000000014)
  • Precision control via MGRSPrecision parameter mentioned in description but not detailed in fact sheet
  • Performance characteristics for large-scale coordinate batch conversions
  • Accuracy guarantees relative to official GeoTrans implementation
Same gist for agents: .md · .json

What it is and what it does

mgrs is a Python wrapper around GeoTrans C code that handles bidirectional conversion between MGRS grid coordinates and decimal degree latitude/longitude. It provides methods to convert lat/lon pairs to MGRS strings, reverse that conversion, and handle degree-minute-second (DMS) format. The package bundles an internal copy of GeoTrans 2.4.2 files and exposes the conversion logic through a simple Python class.

The library is designed for GIS and geospatial applications where military or scientific coordinate systems are needed. It has no runtime dependencies beyond Python itself, making it lightweight to integrate. Wheels are pre-built for Python 3.9–3.12 across Linux, macOS, and Windows architectures, reducing installation friction on common platforms.

Use it for

  • Convert GPS coordinates from a field survey to MGRS format for military or defense mapping applications.
  • Transform MGRS grid references back to decimal degrees for display on web maps or GIS software.
  • Batch process geographic data that mixes coordinate systems in geospatial data pipelines.
  • Parse and validate MGRS strings in location-based services or emergency response systems.
  • Convert between DMS (degrees-minutes-seconds) and decimal degree formats in surveying workflows.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need MGRS coordinate conversion in a Python GIS or geospatial application.

The package is stable, permissively licensed, has no dependencies, and offers pre-built wheels for modern Python versions. Install friction is moderate due to compiled components, but that is typical for geospatial libraries. The aging maintenance status (192 days since last release) is acceptable for a mature, feature-complete library with no known vulnerabilities.

Install

mgrs on PyPI

Before you install

Medium install friction due to compiled wheels for multiple platforms and Python versions (3.9–3.12). Package is aging but stable; last release 192 days ago with active repository (133 stars, last commit 2026-02-03). No runtime dependencies simplifies deployment.

Requires Python 3.9 or later; compiled wheels available for common platforms (Linux x86_64/aarch64, macOS, Windows) but may require build tools on unsupported architectures.

License in practice

MIT license (permissive) permits commercial and private use with minimal restrictions; attribution required but no copyleft obligations.

Quickstart

import mgrs

m = mgrs.MGRS()
latitude, longitude = 42.0, -93.0
mgrs_string = m.toMGRS(latitude, longitude)
print(mgrs_string)  # '15TWG0000049776'

coords = m.toLatLon(mgrs_string)
print(coords)  # (41.999997975127997, -93.000000000000014)

Verify before relying

  • Precision control via MGRSPrecision parameter mentioned in description but not detailed in fact sheet
  • Performance characteristics for large-scale coordinate batch conversions
  • Accuracy guarantees relative to official GeoTrans implementation

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceAging 192 days since the last release
Last repo commit
First released
Downloads269,550 / month, #8,258 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: GIS

Evidence: mgrs-1.5.4-cp310-cp310-macosx_10_9_x86_64.whl; mgrs-1.5.4-cp310-cp310-macosx_11_0_arm64.whl; mgrs-1.5.4-cp310-cp310-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl; mgrs-1.5.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; mgrs-1.5.4-cp310-cp310-musllinux_1_2_aarch64.whl; mgrs-1.5.4-cp310-cp310-musllinux_1_2_x86_64.whl; mgrs-1.5.4-cp310-cp310-win32.whl; mgrs-1.5.4-cp310-cp310-win_amd64.whl; mgrs-1.5.4-cp310-cp310-win_arm64.whl; mgrs-1.5.4-cp311-cp311-macosx_10_9_x86_64.whl; mgrs-1.5.4-cp311-cp311-macosx_11_0_arm64.whl; mgrs-1.5.4-cp311-cp311-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl; mgrs-1.5.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; mgrs-1.5.4-cp311-cp311-musllinux_1_2_aarch64.whl; mgrs-1.5.4-cp311-cp311-musllinux_1_2_x86_64.whl; mgrs-1.5.4-cp311-cp311-win32.whl; mgrs-1.5.4-cp311-cp311-win_amd64.whl; mgrs-1.5.4-cp311-cp311-win_arm64.whl; mgrs-1.5.4-cp312-cp312-macosx_10_13_x86_64.whl; mgrs-1.5.4-cp312-cp312-macosx_11_0_arm64.whl

Tags

Capabilities
MGRS coordinate conversionmilitary grid reference systemlat lon to MGRSdecimal degrees conversiongeographic coordinate transformationGIS coordinate systemsUTM to MGRS conversion
Topics
giscoordinate-systemsgeospatial
PyPI keywords
giscoordinateconversion

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “MGRS coordinate conversion”

  • mgrsConverts between MGRS (Military Grid Reference System) coordinates…
  • pygeodesyPyGeodesy provides pure Python implementations of geodetic…
  • pystac-ext-mgrsAdds MGRS (Military Grid Reference System) extension support to…

Give your agent the search over MCP, or paste the wish link into any chat.

More GIS packages

shapely Worth it
PyPI · GIS · released Sep 2025

Shapely provides Python tools for creating, manipulating, and analyzing 2D geometric objects (points, lines, polygons) using the GEOS library, with both scalar and vectorized NumPy-based operations.

BSD-3-Clausecompiled wheel · 3.10+
85.8Mdownloads / mo
pyproj Unrated
PyPI · Scientific/Engineering · released Aug 2025

pyproj provides a Python interface to PROJ, enabling cartographic projections and coordinate system transformations for geospatial applications.

MITcompiled wheel · 3.11+
28.0Mdownloads / mo
geopandas Worth it
PyPI · GIS · released Jun 2026

GeoPandas extends pandas DataFrames to handle geographic data, combining pandas operations with shapely geometry and spatial analysis capabilities that would otherwise require a spatial database.

Install it if you work with geographic data in Python and want to avoid setting up a spatial database or learning a separate GIS tool.

BSD-3-Clausepure Python · 3.10+
24.8Mdownloads / mo
geopy Worth it
PyPI · Python Modules · released Jul 2026

geopy is a Python client for geocoding and distance calculation that converts addresses to coordinates and vice versa using multiple web-based geocoding services, and computes geodesic and great-circle distances between geographic points.

Install it if you need geocoding or distance calculations in your application.

MITpure Python · 3.8+
19.0Mdownloads / mo
pyogrio Worth it
PyPI · GIS · released Jun 2026

Pyogrio provides fast, bulk-oriented read and write access to vector spatial data formats (Shapefile, GeoPackage, GeoJSON, etc.) via GDAL/OGR bindings, typically for use with GeoPandas GeoDataFrames.

MITcompiled wheel · 3.10+
17.2Mdownloads / mo
h3 Worth it
PyPI · GIS · released May 2026

h3 provides Python bindings to Uber's H3 geospatial indexing library, converting geographic coordinates into hierarchical hexagonal grid cells and performing spatial operations on them.

Apache-2.0compiled wheel · 3.10+
12.1Mdownloads / mo

See also lat-lon-parser · convertbng · pystac-ext-mgrs · utm · haversine · geohash2 · reverse_geocoder · pynmea2 · pynmeagps · pymap3d