Changeset 22553 in osm for applications/editors/josm
- Timestamp:
- 2010-08-03T09:08:36+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/ExifGPSTagger.java
r19873 r22553 9 9 import java.io.IOException; 10 10 import java.io.OutputStream; 11 import java.text.DecimalFormat; 11 12 import java.util.Calendar; 12 13 import java.util.GregorianCalendar; 13 14 import java.util.TimeZone; 14 import java.text.DecimalFormat;15 15 16 16 import org.apache.sanselan.ImageReadException; … … 21 21 import org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter; 22 22 import org.apache.sanselan.formats.tiff.TiffImageMetadata; 23 import org.apache.sanselan.formats.tiff.constants.TagInfo; 24 import org.apache.sanselan.formats.tiff.constants.TiffConstants; 25 import org.apache.sanselan.formats.tiff.fieldtypes.FieldType; 23 import org.apache.sanselan.formats.tiff.constants.GPSTagConstants; 26 24 import org.apache.sanselan.formats.tiff.write.TiffOutputDirectory; 27 25 import org.apache.sanselan.formats.tiff.write.TiffOutputField; … … 93 91 Double[] timeStamp = {new Double(hour), new Double(minute), new Double(second)}; 94 92 TiffOutputField gpsTimeStamp = TiffOutputField.create( 95 TiffConstants.GPS_TAG_GPS_TIME_STAMP,93 GPSTagConstants.GPS_TAG_GPS_TIME_STAMP, 96 94 outputSet.byteOrder, timeStamp); 97 95 TiffOutputDirectory exifDirectory = outputSet.getOrCreateGPSDirectory(); 98 96 // make sure to remove old value if present (this method will 99 97 // not fail if the tag does not exist). 100 exifDirectory.removeField( TiffConstants.GPS_TAG_GPS_TIME_STAMP);98 exifDirectory.removeField(GPSTagConstants.GPS_TAG_GPS_TIME_STAMP); 101 99 exifDirectory.add(gpsTimeStamp); 102 100 103 101 TiffOutputField gpsDateStamp = SanselanFixes.create( 104 TiffConstants.GPS_TAG_GPS_DATE_STAMP,102 GPSTagConstants.GPS_TAG_GPS_DATE_STAMP, 105 103 outputSet.byteOrder, dateStamp); 106 104 // make sure to remove old value if present (this method will 107 105 // not fail if the tag does not exist). 108 exifDirectory.removeField( TiffConstants.GPS_TAG_GPS_DATE_STAMP);106 exifDirectory.removeField(GPSTagConstants.GPS_TAG_GPS_DATE_STAMP); 109 107 exifDirectory.add(gpsDateStamp); 110 108
Note:
See TracChangeset
for help on using the changeset viewer.