Changeset 3067 in josm for trunk


Ignore:
Timestamp:
2010-03-02T00:12:01+01:00 (14 years ago)
Author:
bastiK
Message:

applied #4645 - option to show projected coordinates instead of lat/lon (patch by tibob)

Location:
trunk/src/org/openstreetmap/josm/data/coor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/CoordinateFormat.java

    r2512 r3067  
    1818     * the minutes/seconds format 99" 99'
    1919     */
    20     DEGREES_MINUTES_SECONDS (tr("Degrees Minutes Seconds"));
     20    DEGREES_MINUTES_SECONDS (tr("Degrees Minutes Seconds")),
     21
     22    /**
     23     * coordinates East/North
     24     */
     25    EAST_NORTH (tr("Projected Coordinates"));
    2126
    2227    private String displayName;
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r3018 r3067  
    9696                /* short symbol for South */ trc("compass", "S") :
    9797                    /* short symbol for North */ trc("compass", "N"));
     98        case EAST_NORTH: return cDdFormatter.format(Main.proj.latlon2eastNorth(this).north());
    9899        default: return "ERR";
    99100        }
     
    110111                /* short symbol for West */ trc("compass", "W") :
    111112                    /* short symbol for East */ trc("compass", "E"));
     113        case EAST_NORTH: return cDdFormatter.format(Main.proj.latlon2eastNorth(this).east());
    112114        default: return "ERR";
    113115        }
Note: See TracChangeset for help on using the changeset viewer.