skillfed

pystac-ext-mgrs

MGRS extension for PySTAC

pystac-ext-mgrs v1.0.1 4.0M downloads/30d#2,423 on PyPI454
Permissive license Apache-2.0 Active released

What it is and what it does

pystac-ext-mgrs is a PySTAC extension package that implements the MGRS (Military Grid Reference System) specification for geospatial data cataloging. It extends PySTAC's core functionality to allow STAC items and collections to include MGRS grid reference metadata—specifically UTM zone, latitude band, and grid square identifiers—making it easier to organize and query raster imagery and other geospatial datasets using military grid coordinates.

The package targets MGRS extension v1.0.0 and maintains version parity with the specification it implements. It depends on pystac-core as its sole runtime dependency, meaning it integrates directly into existing PySTAC workflows without introducing additional system or library requirements. The package is actively maintained, supports Python 3.10 through 3.13, and carries no known security vulnerabilities.

Use it for:

  • Add MGRS grid coordinates to satellite or aerial imagery catalogs for military or defense applications.
  • Organize geospatial datasets by UTM zone and latitude band for efficient spatial indexing.
  • Standardize metadata across STAC collections that require military grid reference compliance.
  • Query and filter raster data by MGRS grid square in PySTAC-based data discovery systems.
  • Integrate MGRS metadata into existing PySTAC workflows without replacing core functionality.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Adds MGRS (Military Grid Reference System) extension support to PySTAC, enabling description of geospatial data using UTM zones, latitude bands, and grid square identifiers.

Yes. The package is actively maintained, carries no security vulnerabilities, has low install friction, and provides a straightforward permissive license. Install it if you need to catalog geospatial data using MGRS grid references within a PySTAC workflow; skip it if your data does not require military grid coordinate metadata.

Install

pystac-ext-mgrs on PyPI

pip

pip install pystac-ext-mgrs

uv

uv add pystac-ext-mgrs

poetry

poetry add pystac-ext-mgrs

Installing pystac-ext-mgrs

Before you install

Low friction install with a single runtime dependency (pystac-core). Package is actively maintained with a recent release and supports current Python versions (3.10–3.13).

License in practice

Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.

Quickstart

pip install pystac-ext-mgrs

from pystac_ext_mgrs import mgrs

# Use MGRS extension to add grid reference fields to a PySTAC item
item = mgrs.add_mgrs_fields(item, utm_zone=10, latitude_band='S', grid_square='GG')

Requires Python 3.10 or later; pystac-core must be installed as a runtime dependency.

Verify before relying

  • Exact API surface and available functions beyond the extension schema definition.
  • Whether the package provides convenience methods or only schema validation/serialization.
  • Real-world usage patterns and integration workflows with PySTAC items and collections.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — pystac-core
Maintenance actively maintained — 4 days since the last release
Last repo commit
First released
Downloads 3,981,668/month — #2,423 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pystac_ext_mgrs-1.0.1-py3-none-any.whl

Keywords: STAC, catalog, imagery, mgrs, pystac, raster

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

MGRS grid reference systemPySTAC extension MGRSmilitary grid coordinatesUTM zone latitude bandSTAC geospatial metadataraster imagery cataloginggeospatial data tagging
geospatialstac-extensionmetadata

More Information Analysis packages