- Timestamp:
- 2010-02-18T21:31:04+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r2990 r3018 1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 2 package org.openstreetmap.josm.data.coor; 3 4 import static org.openstreetmap.josm.tools.I18n.trc; 3 5 4 6 import static java.lang.Math.PI; … … 8 10 import static java.lang.Math.sqrt; 9 11 import static java.lang.Math.toRadians; 10 import static org.openstreetmap.josm.tools.I18n.trc;11 12 12 13 import java.text.DecimalFormat; 13 14 import java.text.NumberFormat; 15 import java.util.Locale; 14 16 15 17 import org.openstreetmap.josm.Main; … … 33 35 private static DecimalFormat cDmsMinuteFormatter = new DecimalFormat("00"); 34 36 private static DecimalFormat cDmsSecondFormatter = new DecimalFormat("00.0"); 35 private static DecimalFormat cDdFormatter = new DecimalFormat("###0.00000"); 37 private static DecimalFormat cDdFormatter; 38 static { 39 // Don't use the localized decimal separator. This way we can present 40 // a comma separated list of coordinates. 41 cDdFormatter = (DecimalFormat) NumberFormat.getInstance(Locale.UK); 42 cDdFormatter.applyPattern("###0.00000"); 43 } 36 44 37 45 /**
Note:
See TracChangeset
for help on using the changeset viewer.