Changeset 8132 in josm for trunk/src/org/openstreetmap/josm/tools/ExifReader.java
- Timestamp:
- 2015-03-10T01:17:39+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ExifReader.java
r7956 r8132 2 2 package org.openstreetmap.josm.tools; 3 3 4 import java.awt.geom.AffineTransform; 4 5 import java.io.File; 5 6 import java.io.IOException; … … 21 22 import com.drew.metadata.exif.ExifSubIFDDirectory; 22 23 import com.drew.metadata.exif.GpsDirectory; 23 import java.awt.geom.AffineTransform;24 24 25 25 /** … … 125 125 public static LatLon readLatLon(GpsDirectory dirGps) throws MetadataException { 126 126 if (dirGps != null) { 127 double lat = readAxis(dirGps, GpsDirectory.TAG_ GPS_LATITUDE, GpsDirectory.TAG_GPS_LATITUDE_REF, 'S');128 double lon = readAxis(dirGps, GpsDirectory.TAG_ GPS_LONGITUDE, GpsDirectory.TAG_GPS_LONGITUDE_REF, 'W');127 double lat = readAxis(dirGps, GpsDirectory.TAG_LATITUDE, GpsDirectory.TAG_LATITUDE_REF, 'S'); 128 double lon = readAxis(dirGps, GpsDirectory.TAG_LONGITUDE, GpsDirectory.TAG_LONGITUDE_REF, 'W'); 129 129 return new LatLon(lat, lon); 130 130 } … … 159 159 public static Double readDirection(GpsDirectory dirGps) { 160 160 if (dirGps != null) { 161 Rational direction = dirGps.getRational(GpsDirectory.TAG_ GPS_IMG_DIRECTION);161 Rational direction = dirGps.getRational(GpsDirectory.TAG_IMG_DIRECTION); 162 162 if (direction != null) { 163 163 return direction.doubleValue();
Note:
See TracChangeset
for help on using the changeset viewer.