Skip to content

DMS rounding errors, display truncation; expand DMS syntax #5144

@skylerbunny

Description

@skylerbunny

Much to my (pleasant) surprise, I discovered that it is in fact possible to paste a DMS lat/lon into the iD search box, because I dug deep enough to find this change, 702e3d2 .

The trouble is as it is now, it seems to accept exactly one (undocumemted) format for such a cut/paste. It is:

[D]DD°MM'SS.[S]"[NS],[D]DD°MM'SS.[S]"[EW]

There are a few issues I've identified:

  1. If you enter a location with a negative rather than NSEW, it is actually converted and centered incorrectly:

45°,-90°0'0.5" (to be 45,89°59'59.? W, so it's subtracting wrong somewhere)

  1. Location display rounding is performed around certain cases that shouldn't be, as implied by the above:
    45°,90°0'0.9" shows as 45°N,90° (seems that < 1 second is just dropped from the display)
    45°,90°0'1" shows as 45°N,90°0'1" (that's actually correct!)
    45°,90°0'1.1" still autocompletes as 45°,90°0'1" (display not correct because decimals are dropped, but I think the centering is right)

(1) and (2) make it difficult to assume that the entry of a dms style coordinate pair 'works' correctly, either because it's displayed with bad rounding, or it actually centers on the wrong place.

  1. I guess this is technically an RFE, but I'll toss it in if people are working on the above as defects anyway:
    It would be really awesome if one could paste a dms that looks like this, because it's really common to see done like this:
    45 0 18.229944, -90 19 0.4445 (or) 45 0 18.229944 N, 90 19 0.4445 W

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedFor intermediate contributors, requires investigation or knowledge of iD codenew-featureA new feature for iD

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions