Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
/ usng2 Public archive

Java & Javascript converter for USNG (U.S. National Grid) and MGRS (Military Grid Reference System) coordinates.

License

Notifications You must be signed in to change notification settings

codice/usng2

Repository files navigation

usng2

This project is currently hibernating. Please see usng.js and usng4j

Download the latest release at http://artifacts.codice.org/content/repositories/snapshots/org/codice/usng2/usng2/1.0-SNAPSHOT/ Download the npm release at https://www.npmjs.com/package/usng2 Join the chat at https://groups.google.com/forum/#!forum/usng2-developers

Java & Javascript converter for USNG (U.S. National Grid) and MGRS (Military Grid Reference System) coordinates.

Features

  • Convert Lat/Lon Bounding Box to closest USNG
  • Convert Lat/Lon to UTM (with or without North/South indicator)
  • Convert Lat/Lon point to USNG
  • Convert Lat/Lon point to MGRS
  • Convert UTM (with or without North/South indicator) to Lat/Lon point
  • Convert UTM to Lat/Lon Bounding Box
  • Convert USNG to UTM
  • Convert USNG to Lat/Lon point
  • Convert USNG to Lat/Lon Bounding Box
  • Get UTM Letter Designator for a given Lat
  • Get Zone Number for a give Lat/Lon point
  • Parse a USNG string

Library Formats

This repository produces artifacts for use in both Java and Javascript projects. The Java library can be found in the Codice artifact repository and can be included in your projects with Maven coordinates:

        <dependency>
            <groupId>org.codice.usng2</groupId>
            <artifactId>usng2</artifactId>
            <version>[current release version]</version>
        </dependency>

The Javascript library is delivered as a UMD package from npm and can be included in your projects by invoking require("usng2")

Usage

Example usage of this file with Cesium and OpenLayers can be found within https://github.com/codice/ddf.

Javascript users can also look at the included javascript test file, tests.js.

Discussion

License

MIT

About

Java & Javascript converter for USNG (U.S. National Grid) and MGRS (Military Grid Reference System) coordinates.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published