Changeset 22553 in osm


Ignore:
Timestamp:
2010-08-03T09:08:36+02:00 (14 years ago)
Author:
jttt
Message:

recompile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/ExifGPSTagger.java

    r19873 r22553  
    99import java.io.IOException;
    1010import java.io.OutputStream;
     11import java.text.DecimalFormat;
    1112import java.util.Calendar;
    1213import java.util.GregorianCalendar;
    1314import java.util.TimeZone;
    14 import java.text.DecimalFormat;
    1515
    1616import org.apache.sanselan.ImageReadException;
     
    2121import org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter;
    2222import 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;
     23import org.apache.sanselan.formats.tiff.constants.GPSTagConstants;
    2624import org.apache.sanselan.formats.tiff.write.TiffOutputDirectory;
    2725import org.apache.sanselan.formats.tiff.write.TiffOutputField;
     
    9391            Double[] timeStamp = {new Double(hour), new Double(minute), new Double(second)};
    9492            TiffOutputField gpsTimeStamp = TiffOutputField.create(
    95                     TiffConstants.GPS_TAG_GPS_TIME_STAMP,
     93                    GPSTagConstants.GPS_TAG_GPS_TIME_STAMP,
    9694                    outputSet.byteOrder, timeStamp);
    9795            TiffOutputDirectory exifDirectory = outputSet.getOrCreateGPSDirectory();
    9896            // make sure to remove old value if present (this method will
    9997            // 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);
    10199            exifDirectory.add(gpsTimeStamp);
    102100
    103101            TiffOutputField gpsDateStamp = SanselanFixes.create(
    104                     TiffConstants.GPS_TAG_GPS_DATE_STAMP,
     102                    GPSTagConstants.GPS_TAG_GPS_DATE_STAMP,
    105103                    outputSet.byteOrder, dateStamp);
    106104            // make sure to remove old value if present (this method will
    107105            // 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);
    109107            exifDirectory.add(gpsDateStamp);
    110108
Note: See TracChangeset for help on using the changeset viewer.