Home

Awesome

MGRS Extension Specification

The MGRS STAC extension adds fields to Items to define their location within the Military Grid Reference System.

MGRS is commonly used system for distributing geospatial data. It divides the earth up by UTM zone (varies by longitude) and then by latitude band (varies by latitude). Within each of these regions the area is further subdivided into a 2D grid designated by 2 letters. In the polar regions a Universal Polar Stereographic (UPS) projection is used instead. The latitude band and grid squares are still used, but the UTM zone is not.

Item Properties

Field NameTypeDescription
mgrs:latitude_bandstringREQUIRED. The latitude band of the Item's centroid
mgrs:grid_squarestringREQUIRED. MGRS grid square of the Item's centroid
mgrs:utm_zoneintegerThe UTM Zone of the Item centroid

Between 80°S and 84°N UTM Zone is required. In the polar regions UTM zone is not provided.

Contributing

All contributions are subject to the STAC Specification Code of Conduct. For contributions, please follow the STAC specification contributing guide Instructions for running tests are copied here for convenience.

Running tests

The same checks that run as checks on PR's are part of the repository and can be run locally to verify that changes are valid. To run tests locally, you'll need npm, which is a standard part of any node.js installation.

First you'll need to install everything with npm once. Just navigate to the root of this repository and on your command line run:

npm install

Then to check markdown formatting and test the examples against the JSON schema, you can run:

npm test

This will spit out the same texts that you see online, and you can then go and fix your markdown or examples.

If the tests reveal formatting problems with the examples, you can fix them with:

npm run format-examples