Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#68 closed enhancement (fixed)

MGRS utility for Proj4js

Reported by: ahocevar Owned by: madair
Priority: major Milestone: 1.0.3
Component: core Version: 1.0.0
Keywords: Cc:


MGRS is a reference system that uses strings to encode UTM coordinates to a grid with 1, 10, 100, 1000 or 10000 m accuracy. While not to be seen as a projection that could be added to Proj4js with a projection definition, this would still make sense as an utility.

Attachments (1)

mgrs.patch (36.4 KB) - added by ahocevar 6 years ago.
MGRS utility

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by ahocevar

Attachment: mgrs.patch added

MGRS utility

comment:1 Changed 6 years ago by ahocevar

The above patch adds a Proj4js.util namespace with a MGRS utility. This utility also works standalone, but if used with Proj4js, it will add a fromMGRS function and a toMGRS method to Proj4js.Point.

A forward-only version of this utility was part of Community Mapbuilder, and the routines used in this utility are ported from the com.bbn.openmap.proj.coords Java package of OpenMap?.

comment:2 Changed 6 years ago by madair

Resolution: fixed
Status: newclosed

Added. I will leave this out of the single file build for now. Devs can add it to their own build by including it in the build/library.cfg file, or just include the JS file.

Thanks Andreas for adding this.

comment:3 Changed 6 years ago by madair

Note: See TracTickets for help on using tickets.