Index: src/org/openstreetmap/josm/data/coor/CoordinateFormat.java =================================================================== --- src/org/openstreetmap/josm/data/coor/CoordinateFormat.java (Revision 3065) +++ src/org/openstreetmap/josm/data/coor/CoordinateFormat.java (Arbeitskopie) @@ -17,8 +17,13 @@ /** * the minutes/seconds format 99" 99' */ - DEGREES_MINUTES_SECONDS (tr("Degrees Minutes Seconds")); + DEGREES_MINUTES_SECONDS (tr("Degrees Minutes Seconds")), + /** + * coordinates East/North + */ + EAST_NORTH (tr("East/North")); + private String displayName; private CoordinateFormat(String displayName) { this.displayName = displayName; Index: src/org/openstreetmap/josm/data/coor/LatLon.java =================================================================== --- src/org/openstreetmap/josm/data/coor/LatLon.java (Revision 3065) +++ src/org/openstreetmap/josm/data/coor/LatLon.java (Arbeitskopie) @@ -9,6 +9,7 @@ import static java.lang.Math.sin; import static java.lang.Math.sqrt; import static java.lang.Math.toRadians; +import static java.lang.Math.round; import java.text.DecimalFormat; import java.text.NumberFormat; @@ -95,6 +96,8 @@ case DEGREES_MINUTES_SECONDS: return dms(y) + ((y < 0) ? /* short symbol for South */ trc("compass", "S") : /* short symbol for North */ trc("compass", "N")); + case EAST_NORTH: + return String.valueOf(round(Main.proj.latlon2eastNorth(this).north())); default: return "ERR"; } } @@ -109,6 +112,8 @@ case DEGREES_MINUTES_SECONDS: return dms(x) + ((x < 0) ? /* short symbol for West */ trc("compass", "W") : /* short symbol for East */ trc("compass", "E")); + case EAST_NORTH: + return String.valueOf(round(Main.proj.latlon2eastNorth(this).east())); default: return "ERR"; } }