MGRS Grid for QGIS
==================

Draws an MGRS grid over the current map view, with coordinate labels along the edges.

Install
-------
In QGIS choose Plugins > Manage and Install Plugins > Install from ZIP, pick this zip file
and press Install Plugin. A grid icon appears in the toolbar.

Use
---
Click the icon to draw a grid with an automatically chosen square size.
The small arrow next to it opens a menu:
  - 100 m, 1 km, 10 km or 100 km squares
  - Grid zones only: the 6 by 8 degree grid zones with their designations
  - Follow the view: redraw the grid as you pan and zoom (on by default)
  - Set project CRS to the UTM zone of this view: makes the grid sit straight
  - Remove the grid

With the automatic size, views wider than about 3000 km show the grid zones instead of
squares. A grid layer that you switch off in the layer list stays off while you move.

The grid is temporary. To keep one, untick Follow the view, then right-click the
grid layer and choose Export > Save Features As.

Read a coordinate
-----------------
Click the crosshair icon, then click on the map. The MGRS coordinate of the point
(to 1 m) is shown and copied to the clipboard. While the tool is active, the status
bar shows the coordinate under the mouse.

Go to a coordinate
------------------
Click the pin icon and type an MGRS coordinate, for example 34V EP 772 574.
Spaces and lower case are fine. The map moves there and marks the square.

Print layout
------------
Click the printer icon. Choose a title, paper size, orientation, scale (or fit the
current view), grid square size, resolution and whether to add a legend. The plugin
makes a print layout centred on the current view and opens it in the layout designer,
where you can adjust it and export it. Tick "Also save the map as a PDF file" to get
the PDF straight away.

The printed map is drawn in the UTM zone at the middle of the view, so the grid is
straight and grid north is up. Grid numbers are printed on the top and left edges.
The legend gives the scale, a scale bar, the grid zone designation, the 100 km
squares on the sheet and the coordinate system.

Reference point: a red circle is drawn on a grid line crossing near the lower left
corner of the map, and its full MGRS coordinate is written in the legend. To mark a
point of your own instead, type its MGRS coordinate in the Reference point field.

Add the copyright notice of your map data to the layout yourself.

NATO style: tick this option for a sheet laid out after the conventions of the DGIWG
Defence Topographic Map. It gives black grid lines and numbers on all four sides,
geographic ticks with latitude and longitude, cyan numbered ticks for a neighbouring
UTM zone, the sheet name on top, geodetic notes, three bar scales, a grid reference
box, a WGS 84 banner and a diagram of grid, true and magnetic north. It is a style,
not a conforming product, and the diagram is not drawn to angle.

Magnetic declination: every layout states the declination at the middle of the sheet
for the current date, calculated with the World Magnetic Model (WMM2025, valid until
the end of 2029). To use a value from another source, type it into the Magnetic
declination field in degrees, east positive. Local magnetic anomalies are not included.

Notes
-----
Coverage is 80 S to 84 N. The polar regions (UPS) are not drawn.
Square letters follow the modern WGS84 lettering scheme.
Requires QGIS 3.40 or newer. Works in QGIS 3 and in QGIS 4.

Developer
---------
Jussi Mattila, jussi@sgeo.fi

Licence
-------
GNU General Public License, version 2 or later. See the file LICENSE.
