Changeset 7236 in josm for trunk/src/org
- Timestamp:
- 2014-06-10T11:38:47+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r6990 r7236 56 56 private static DecimalFormat cDmMinuteFormatter = new DecimalFormat("00.000"); 57 57 public static final DecimalFormat cDdFormatter; 58 public static final DecimalFormat cDdHighPecisionFormatter; 58 59 static { 59 60 // Don't use the localized decimal separator. This way we can present … … 61 62 cDdFormatter = (DecimalFormat) NumberFormat.getInstance(Locale.UK); 62 63 cDdFormatter.applyPattern("###0.0######"); 64 cDdHighPecisionFormatter = (DecimalFormat) NumberFormat.getInstance(Locale.UK); 65 cDdHighPecisionFormatter.applyPattern("###0.0##########"); 63 66 } 64 67 -
trunk/src/org/openstreetmap/josm/io/OsmWriter.java
r7233 r7236 13 13 14 14 import org.openstreetmap.josm.data.coor.CoordinateFormat; 15 import org.openstreetmap.josm.data.coor.LatLon; 15 16 import org.openstreetmap.josm.data.osm.Changeset; 16 17 import org.openstreetmap.josm.data.osm.DataSet; … … 182 183 } else { 183 184 if (n.getCoor() != null) { 184 out.print(" lat='" +n.getCoor().latToString(CoordinateFormat.DECIMAL_DEGREES)+185 "' lon='"+ n.getCoor().lonToString(CoordinateFormat.DECIMAL_DEGREES)+"'");185 out.print(" lat='"+LatLon.cDdHighPecisionFormatter.format(n.getCoor().lat())+ 186 "' lon='"+LatLon.cDdHighPecisionFormatter.format(n.getCoor().lon())+"'"); 186 187 } 187 188 addTags(n, "node", true);
Note:
See TracChangeset
for help on using the changeset viewer.