Ticket #68 (closed enhancement: fixed)

Opened 16 months ago

Last modified 15 months ago

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

mgrs.patch Download (36.4 KB) - added by ahocevar 16 months ago.
MGRS utility

Change History

Changed 16 months ago by ahocevar

MGRS utility

Changed 16 months 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?.

Changed 15 months ago by madair

  • status changed from new to closed
  • resolution set to fixed

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.

Changed 15 months ago by madair

  • milestone changed from 1.0.2 to 1.0.3
Note: See TracTickets for help on using tickets.