Changeset 17878 in josm for trunk/src/org
- Timestamp:
- 2021-05-06T22:44:54+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageCorrelation.java
r17715 r17878 230 230 } 231 231 long tagms = TimeUnit.MINUTES.toMillis(tagTime); 232 if ( curTmp.getPos() == null&&232 if (!curTmp.hasNewGpsData() && 233 233 (Math.abs(time - curWpTime) <= tagms 234 234 || Math.abs(prevWpTime - time) <= tagms)) { … … 256 256 break; 257 257 } 258 if ( curTmp.getPos() == null) {258 if (!curTmp.hasNewGpsData()) { 259 259 // The values of timeDiff are between 0 and 1, it is not seconds but a dimensionless variable 260 260 double timeDiff = (double) (imgTime - prevWpTime) / Math.abs(curWpTime - prevWpTime); -
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java
r17715 r17878 572 572 gpsTime = tmp.gpsTime; 573 573 exifImgDir = tmp.exifImgDir; 574 isNewGpsData = tmp.isNewGpsData;574 isNewGpsData = isNewGpsData || tmp.isNewGpsData; 575 575 tmp = null; 576 576 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r17732 r17878 1091 1091 List<ImageEntry> dateImgLst = getSortedImgList(); 1092 1092 // Create a temporary copy for each image 1093 for (ImageEntry ie : dateImgLst){1093 dateImgLst.forEach(ie -> { 1094 1094 ie.createTmp(); 1095 ie.getTmp(). setPos(null);1096 } 1095 ie.getTmp().unflagNewGpsData(); 1096 }); 1097 1097 1098 1098 GpxDataWrapper selGpx = selectedGPX(false);
Note:
See TracChangeset
for help on using the changeset viewer.