Changeset 19388 in josm
- Timestamp:
- 2025-04-23T20:03:54+02:00 (11 days ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageCorrelation.java
r19387 r19388 6 6 import java.util.Collection; 7 7 import java.util.List; 8 import java.util.Locale; 8 9 import java.util.concurrent.TimeUnit; 9 10 … … 238 239 return pdopvalue.doubleValue(); 239 240 } else if (wp.attr.get(GpxConstants.PT_PDOP) instanceof Double) { 240 Double pdopvalue = (Double) wp.attr.get(GpxConstants.PT_PDOP); 241 return pdopvalue.doubleValue(); 241 return (Double) wp.attr.get(GpxConstants.PT_PDOP); 242 242 } 243 243 } else if (wp.attr.get(GpxConstants.PT_HDOP) != null) { … … 246 246 return hdopvalue.doubleValue(); 247 247 } else if (wp.attr.get(GpxConstants.PT_HDOP) instanceof Double) { 248 Double hdopvalue = (Double) wp.attr.get(GpxConstants.PT_HDOP); 249 return hdopvalue.doubleValue(); 248 return (Double) wp.attr.get(GpxConstants.PT_HDOP); 250 249 } 251 250 } … … 279 278 return null; 280 279 } 281 gpsProcMethod = "GNSS" + " " + positioningModes.get(lowestProcIndex).toUpperCase() + " " + "CORRELATION"; 280 gpsProcMethod = "GNSS" + " " + positioningModes.get(lowestProcIndex).toUpperCase(Locale.ENGLISH) + " " + "CORRELATION"; 282 281 if (lowestProcIndex < lowestGnssModeIdx) { 283 gpsProcMethod = positioningModes.get(lowestProcIndex).toUpperCase() + " " + "CORRELATION"; 282 gpsProcMethod = positioningModes.get(lowestProcIndex).toUpperCase(Locale.ENGLISH) + " " + "CORRELATION"; 284 283 } else { 285 gpsProcMethod = "GNSS" + " " + positioningModes.get(lowestProcIndex).toUpperCase() + " " + "CORRELATION"; 284 gpsProcMethod = "GNSS" + " " + positioningModes.get(lowestProcIndex).toUpperCase(Locale.ENGLISH) + " " + "CORRELATION"; 286 285 } 287 286 gpsProcMethod = gpsProcMethod.replace("FLOAT RTK", "RTK_FLOAT"); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r19387 r19388 482 482 483 483 static String loadGpsDatum() { 484 String gpsDatum = Config.getPref().get("geoimage.datum", "WGS-84"); 485 return gpsDatum; 484 return Config.getPref().get("geoimage.datum", "WGS-84"); 486 485 } 487 486 -
trunk/src/org/openstreetmap/josm/tools/ExifReader.java
r19387 r19388 150 150 if (dirGps != null) { 151 151 try { 152 Instant dateTimeStamp = dirGps.getGpsDate().toInstant(); 153 return dateTimeStamp; 152 return dirGps.getGpsDate().toInstant(); 154 153 } catch (UncheckedParseException | DateTimeException e) { 155 154 Logging.error(e); … … 422 421 if (dirGps != null) { 423 422 Double hposerr = dirGps.getDoubleObject(GpsDirectory.TAG_H_POSITIONING_ERROR); 424 if (hposerr != null) { 425 return hposerr.doubleValue(); 426 } 423 if (hposerr != null) 424 return hposerr; 427 425 } 428 426 return null; … … 465 463 if (dirGps != null) { 466 464 Integer gpsDiffMode = dirGps.getInteger(GpsDirectory.TAG_DIFFERENTIAL); 467 if (gpsDiffMode != null) { 468 return gpsDiffMode.intValue(); 469 } 465 if (gpsDiffMode != null) 466 return gpsDiffMode; 470 467 } 471 468 return null; … … 508 505 if (dirGps != null) { 509 506 Integer gps2d3dMode = dirGps.getInteger(GpsDirectory.TAG_MEASURE_MODE); 510 if (gps2d3dMode != null) { 511 return gps2d3dMode.intValue(); 512 } 507 if (gps2d3dMode != null) 508 return gps2d3dMode; 513 509 } 514 510 return null; … … 544 540 Double gpsDop = dirGps.getDoubleObject(GpsDirectory.TAG_DOP); 545 541 if (gpsDop != null) { 546 return gpsDop .doubleValue();542 return gpsDop; 547 543 } 548 544 } … … 578 574 if (dirGps != null) { 579 575 String gpsDatum = dirGps.getString(GpsDirectory.TAG_MAP_DATUM); 580 if (gpsDatum != null) { 581 return gpsDatum.toString(); 582 } 576 if (gpsDatum != null) 577 return gpsDatum; 583 578 } 584 579 return null; … … 637 632 if (dirGps != null) { 638 633 String gpsProcessingMethod = dirGps.getDescription(GpsDirectory.TAG_PROCESSING_METHOD); 639 if (gpsProcessingMethod != null) { 640 return gpsProcessingMethod.toString(); 641 } 634 if (gpsProcessingMethod != null) 635 return gpsProcessingMethod; 642 636 } 643 637 return null;
Note:
See TracChangeset
for help on using the changeset viewer.