This package has been deprecated

    Author message:

    this version has been deprecated; use usng.js for now

    @coyotesqrl/usng2

    0.9.9-coyote.c • Public • Published

    usng2

    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

    Install

    npm i @coyotesqrl/usng2

    DownloadsWeekly Downloads

    4

    Version

    0.9.9-coyote.c

    License

    MIT

    Unpacked Size

    677 kB

    Total Files

    4

    Last publish

    Collaborators

    • coyotesqrl