- Timestamp:
- 2021-10-03T13:24:18+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageCorrelation.java
r18237 r18243 150 150 ret += matchPoints(images, prevWp, prevWpTime, prevWp, prevWpTime, offset, false, trkTagTime, null, dirpos); 151 151 } 152 Logging.debug("Correlated {0} total points", ret); 152 153 return ret; 153 154 } … … 211 212 long offset, boolean interpolate, int tagTime, WayPoint nextWp, GpxImageDirectionPositionSettings dirpos) { 212 213 213 int ret = 0;214 214 final boolean isLast = nextWp == null; 215 215 … … 222 222 } 223 223 224 if (Logging.isDebugEnabled()) { 225 Logging.debug("Correlating images for i={1} - curWp={2}/{3} - prevWp={4}/{5} - nextWp={6} - tagTime={7} - interpolate={8}", 226 i, curWp, curWpTime, prevWp, prevWpTime, nextWp, tagTime, interpolate); 227 } 228 224 229 // no photos match 225 if (i < 0) 230 if (i < 0) { 231 Logging.debug("Correlated nothing, no photos match"); 226 232 return 0; 227 233 } 234 235 int ret = 0; 228 236 Double speed = null; 229 237 Double prevElevation = null; … … 273 281 // This code gives a simple linear interpolation of the coordinates between current and 274 282 // previous track point assuming a constant speed in between 275 LatLon nextCoorForDirection = nextWp != null ? nextWp.getCoor() : null; 283 @SuppressWarnings("null") 284 LatLon nextCoorForDirection = nextWp.getCoor(); 276 285 while (i >= 0) { 277 286 final GpxImageEntry curImg = images.get(i); … … 318 327 } 319 328 } 329 Logging.debug("Correlated {0} image(s)", ret); 320 330 return ret; 321 331 }
Note:
See TracChangeset
for help on using the changeset viewer.