Opened 13 years ago

Closed 13 years ago

Last modified 13 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:

Description

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 13 years ago.
MGRS utility

Download all attachments as: .zip

Change History (4)

by ahocevar, 13 years ago

Attachment: mgrs.patch added

MGRS utility

comment:1 by ahocevar, 13 years ago

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 by madair, 13 years ago

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 by madair, 13 years ago

Milestone: 1.0.21.0.3
Note: See TracTickets for help on using tickets.