Wrong UTM coordinates

Adrian B. Hoffsten's Avatar

Adrian B. Hoffsten

21 Apr, 2021 10:46 PM

Hi, just visited Sartopo online. But seems like I am getting invalid UTM coordinates. The area in the screenshot is in the 32V UTM domain.
Signing in fixes the problem. Atleast now.
Tested in
Firefox: 88.0
Edge: 90.0.818.42

  1. Support Staff 1 Posted by Julie on 22 Apr, 2021 03:15 PM

    Julie's Avatar

    Funny, zone 92 doesn't even exist. This happens sometimes when you pan around the whole globe and back - it just keeps adding to the number instead of wrapping back to the beginning. It's actually a little difficult to fix, and you would be surprised at how many people don't notice! Thanks for the report; we'll get to it but likely not right away.

    Thanks
    Julie

  2. 2 Posted by Adrian B. Hoffs... on 22 Apr, 2021 05:50 PM

    Adrian B. Hoffsten's Avatar

    Hi, yeah I imagine not many people have the need to wrap around the map. Anyways, you mentioned it would be a little difficult to fix so I pasted a fix downbelow :)
    I am just assuming you are deriving the other coordinates from lat lon decimal since that has become the web standard.

            let half = (coordinateFromMap / 180);
            half = (half > 0 ? Math.floor(half) : Math.ceil(half));
            let whole = (coordinateFromMap / 360);
            whole = (whole > 0 ? Math.floor(whole) : Math.ceil(whole));
            let realCoordinate = (half % 2 ? coordinateFromMap - (whole + (half > 0 ? 1 : -1)) * 360 : coordinateFromMap - whole * 360);
    
  3. Julie closed this discussion on 29 Apr, 2021 07:26 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

14 May, 2021 11:35 PM
14 May, 2021 09:02 PM
14 May, 2021 08:30 PM
14 May, 2021 04:51 PM
14 May, 2021 04:45 PM

 

14 May, 2021 04:24 PM
14 May, 2021 02:11 PM
14 May, 2021 11:38 AM
14 May, 2021 12:11 AM
13 May, 2021 11:52 PM
13 May, 2021 11:24 PM