Repository navigation
Open
Description
Tracking issue for the roadmap item "UTM and MGRS grids and coordinate readouts" (Self-contained, any time). Each piece below is its own pull request and can land on its own; this issue keeps the order and links them. I'm taking pieces 1 to 3 first.
What exists
- The map can be drawn in any WGS 84 UTM zone (EPSG:32601–32660, 32701–32760) or a national transverse Mercator grid.
- Layouts draw measured grids in any projected system (feat(layouts): measured grids, eastings and northings in a projected system, beside the graticule #1012), defaulting to the UTM zone at the frame's center (
utm_epsg). - The map's graticule is latitude and longitude only, and the status bar reads decimal degrees or DMS.
Pieces
- UTM conversion in
rustgis-geom: longitude/latitude to and from zone, hemisphere, easting and northing on WGS 84, by Karney's Krüger series (accurate to nanometers, no new dependency), with the Norway and Svalbard zone exceptions. Tested against GeographicLib's values. - UPS in
rustgis-geom: Universal Polar Stereographic north of 84°N and south of 80°S, where MGRS leaves UTM. Needs 1. - MGRS in
rustgis-geom: encoding (grid zone designator, 100 km square letters, 1 m to 100 km precision) and parsing. Tested against GeographicLib and NGA examples. Needs 1 and 2. - Status bar readout: decimal degrees, DMS, UTM or MGRS, in place of the DMS switch, kept in settings. Needs 1 and 3.
- UTM and MGRS input: the search box and
map.goToXYtake33U 455123 5411234and33UUP5512311234. Needs 1 and 3. - A conversion command between longitude/latitude, UTM and MGRS, for the CLI, Python and the AI Assistant. Needs 1 and 3.
- UTM grid on the map: zone and latitude-band lines, and eastings and northings at an interval that suits the scale, reusing feat(layouts): measured grids, eastings and northings in a projected system, beside the graticule #1012's measured-grid drawing. Needs 1.
- MGRS grid on the map: 100 km squares with their letters, and finer lines as the map zooms in. Needs 3 and 7.
- MGRS labels on layout grids: feat(layouts): measured grids, eastings and northings in a projected system, beside the graticule #1012's measured grid labeled in MGRS, with grid-zone designations. Needs 3.
As far as I can see, none of them changes the data model, a dependency, a command's id or parameters, or the project format; pieces 4 and 7 add a setting and a View option, placed by the ribbon guidelines.
Two questions before pieces 4 and 7: should the readout format be a per-map setting or an app preference? And should the map grids be a type of View › Graticule (as layout grids have a Type) or a command of their own?
Metadata
Metadata
Assignees
Labels
No labels
Activity
pick2510 commentedon Nov 10, 2026
Pieces 1, 3, 4 and 5 landed with #1429 (readouts, search, copy).
On piece 7: why only UTM? #1012 already draws a measured grid in any projected system on layouts. I'd do the same on the map:
People mostly read coordinates off national grids (LV95, British National Grid, State Plane), so UTM alone doesn't help them much.
That also answers the second question: a Type under View › Graticule (degrees, projected, UTM zones, MGRS), the same as layout grids have.
I'm taking pieces 7 and 9, since #1012 is mine.
flight1973 commentedon Nov 11, 2026
Thanks @pick2510, agreed. The map's own projected system as the default makes more sense, with "UTM, all zones" as its own mode and MGRS on top of it. A Type under View › Graticule answers the second question too. Pieces 7 and 9 are yours.
Two things I found checking main:
map.goToXYand the By Coordinates dialog still take decimal degrees only. Considerations regarding RustGIS and a proposal for improvements #1157 asks for the same thing. I'll pick that up.utm.rsrefuses polar references withGridError::Polar, so MGRS stops at 84°N and 80°S, and the MGRS grid (piece 8) will need UPS near the poles. I'll take piece 2.feat(map): the graticule draws a measured grid or the UTM zones (#1042 …
feat(layout): a measured grid labelled as MGRS, its 100 km squares na…
feat(layout): a measured grid labelled as MGRS, its 100 km squares na…
feat(geom): UPS for the polar areas: readouts, polar MGRS and search (#…
flight1973 commentedon Nov 16, 2026
Where this stands, by piece:
map.goToXYand By Coordinates in feat(navigate): By Coordinates takes DMS, UTM and MGRS #2002I'd like to take piece 8, the MGRS grid on the map, building on #1839's graticule types and the polar squares from #1864. @pick2510, unless you've already started on it?
pick2510 commentedon Nov 16, 2026
Fine for me.
feat(engine): map.convertPosition gives a place in every form RustGIS…