Changeset 6566 in josm for trunk/src/org/openstreetmap/josm/data/coor
- Timestamp:
- 2013-12-30T10:17:44+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r6500 r6566 14 14 import java.text.DecimalFormat; 15 15 import java.text.NumberFormat; 16 import java.util.Arrays; 16 17 import java.util.Locale; 17 18 18 19 import org.openstreetmap.josm.Main; 19 20 import org.openstreetmap.josm.data.Bounds; 21 import org.openstreetmap.josm.tools.Utils; 20 22 21 23 /** … … 314 316 } 315 317 318 /** 319 * Returns this lat/lon pair in human-readable format separated by {@code separator}. 320 * @return String in the format {@code "1.23456[separator]2.34567"} 321 */ 322 public String toStringCSV(String separator) { 323 return Utils.join(separator, Arrays.asList( 324 latToString(CoordinateFormat.DECIMAL_DEGREES), 325 lonToString(CoordinateFormat.DECIMAL_DEGREES) 326 )); 327 } 328 316 329 public LatLon interpolate(LatLon ll2, double proportion) { 317 330 return new LatLon(this.lat() + proportion * (ll2.lat() - this.lat()),
Note:
See TracChangeset
for help on using the changeset viewer.