Changeset 12538 in josm for trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
- Timestamp:
- 2017-07-30T00:47:03+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r12375 r12538 234 234 * @param pCoordinate The coordinate to convert 235 235 * @return The coordinate in degrees/minutes format 236 */ 237 public static String dm(double pCoordinate) { 236 * @since 12537 237 */ 238 public static String degreesMinutes(double pCoordinate) { 238 239 239 240 double tAbsCoord = Math.abs(pCoordinate); … … 250 251 251 252 return sDegrees + '\u00B0' + sMinutes + '\''; 253 } 254 255 /** 256 * Replies the coordinate in degrees/minutes format 257 * @param pCoordinate The coordinate to convert 258 * @return The coordinate in degrees/minutes format 259 * @deprecated use {@link #degreesMinutes(double)} instead 260 */ 261 @Deprecated 262 public static String dm(double pCoordinate) { 263 return degreesMinutes(pCoordinate); 252 264 } 253 265 … … 291 303 case DECIMAL_DEGREES: return cDdFormatter.format(y); 292 304 case DEGREES_MINUTES_SECONDS: return dms(y) + ((y < 0) ? SOUTH : NORTH); 293 case NAUTICAL: return d m(y) + ((y < 0) ? SOUTH : NORTH);305 case NAUTICAL: return degreesMinutes(y) + ((y < 0) ? SOUTH : NORTH); 294 306 case EAST_NORTH: return cDdFormatter.format(this.getEastNorth().north()); 295 307 default: return "ERR"; … … 311 323 case DECIMAL_DEGREES: return cDdFormatter.format(x); 312 324 case DEGREES_MINUTES_SECONDS: return dms(x) + ((x < 0) ? WEST : EAST); 313 case NAUTICAL: return d m(x) + ((x < 0) ? WEST : EAST);325 case NAUTICAL: return degreesMinutes(x) + ((x < 0) ? WEST : EAST); 314 326 case EAST_NORTH: return cDdFormatter.format(this.getEastNorth().east()); 315 327 default: return "ERR";
Note:
See TracChangeset
for help on using the changeset viewer.