Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5952735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:43:25+00:00 2026-05-22T17:43:25+00:00

I am writing a coordinate conversion library for javascript (for both NodeJS and browser

  • 0

I am writing a coordinate conversion library for javascript (for both NodeJS and browser javascript). I have quite a bit done already. Check it out if you’re interested. I didn’t write most of the code, so I’m not exactly sure how everything works.

From what I can tell, MGRS/USNG zones are basically renamed UTM zones, which in turn are defined in terms of lat/long.

Let’s say I have an MGRS coordinate and I move a certain displacement. Can I accurately determine whether I crossed a zone boundary without first converting to lat/long? I know how to update coordinates as I move within a zone because most everything is square within zones.

Is there a way to detect zone changes without having to convert to lat/long?

Are there any libraries, in any language, that do this?

The existing code requires a latitude and longitude, so I guess I could convert to lat/long, apply the transformation, and then convert back to MGRS. This wouldn’t be that bad if I only want to determine the zone I’m in, then I can keep the rest of the transformation stuff in MGRS to maintain precision. The only issue is, I want to be as precise as possible.

Note:

I did find this article explaining coordinate conversions, but this doesn’t really cover coordinate transformations.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:43:26+00:00Added an answer on May 22, 2026 at 5:43 pm

    From what I’ve found, it is not possible to convert directly between MGRS and Lat/Long.

    MGRS (or USNG for that matter) uses the same zone definitions as UTM, which is defined by lat/long coordinates. UTM and MGRS (USNG) make the world essentially flat, using fudge factors to maintain close accuracy (within a meter or so). Since these grids are treated as being flat, they are not reliable for determining zone boundaries, which are defined in terms of the great circle.

    Conversion between MGRS and UTM is easy (and pretty much lossless), and conversion between UTM and lat/long is pretty accurate, albeit not 100% precise.

    From what I’ve read, the best way to accurately translate an MGRS coordinate is to first convert it to lat/long, apply the tranlation, then convert back. This is good for detecting zone changes, but a more accurate destination point could potentially be found by using the zone from the lat/long conversion and applying the rest of the translation in MGRS coordinates. This should detect mid-square zone changes.

    References/Resources:

    http://en.wikipedia.org/wiki/Military_grid_reference_system

    http://www.stellman-greene.com/mgrs_to_utm/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm writing a Javascript library that takes x,y coordinates and uses them to
I'm writing a simple maths library with a template vector type: template<typename T, size_t
I'm writing some coordinate transformations (more specifically the Joukoswky Transform, Wikipedia Joukowsky Transform ),
In Writing CGI Applications with Perl, have following code to log visitors. (my $digits
In a graphical program I'm writing using pygame I use a tuple representing a
I'm writing a game that displays 56 hexagon pieces filling the screen in the
We're writing an application that's in landscape mode exclusively. We use a transform on
When writing a MVVM WPF app, there's always a point where the view model
I'm working on writing a Pong game and I've run across a problem. I'm
I am writing a program that convert TM-2 degree to lat/lon on Android, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.