Changeset 5242 in josm
- Timestamp:
- 2012-05-24T20:27:56+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer/geoimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r5222 r5242 1250 1250 curImg.tmp.setSpeed(speed); 1251 1251 if (curElevation != null && prevElevation != null) { 1252 curImg.setElevation(prevElevation + (curElevation - prevElevation) * timeDiff); 1252 curImg.tmp.setElevation(prevElevation + (curElevation - prevElevation) * timeDiff); 1253 1253 } 1254 1254 curImg.tmp.setGpsTime(new Date(curImg.getExifTime().getTime() - offset)); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r4977 r5242 537 537 538 538 try { 539 double ele=dirGps.getDouble(GpsDirectory.TAG_GPS_ALTITUDE); 540 int d = dirGps.getInt(GpsDirectory.TAG_GPS_ALTITUDE_REF); 541 if (d == 1) { 542 ele *= -1; 543 } 544 e.setElevation(ele); 545 } catch (MetadataException ex) { 546 } 547 548 try { 539 549 // longitude 540 550 … … 596 606 } 597 607 } catch (Exception ex) { // (other exceptions, e.g. #5271) 598 System.err.println("Error whenreading EXIF from file: "+ex);608 System.err.println("Error reading EXIF from file: "+ex); 599 609 e.setExifCoor(null); 600 610 e.setPos(null);
Note:
See TracChangeset
for help on using the changeset viewer.