Ignore:
Timestamp:
2024-06-06T18:41:48+02:00 (8 months ago)
Author:
taylor.smock
Message:

Update MicrosoftStreetside to use apache commons-imaging 1.0.0-alpha5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/MicrosoftStreetside/src/org/openstreetmap/josm/plugins/streetside/io/export/StreetsideExportWriterThread.java

    r36228 r36278  
    1313import javax.imageio.ImageIO;
    1414
    15 import org.apache.commons.imaging.ImageReadException;
    16 import org.apache.commons.imaging.ImageWriteException;
    1715import org.apache.commons.imaging.common.RationalNumber;
    1816import org.apache.commons.imaging.formats.jpeg.exif.ExifRewriter;
     
    8078
    8179                exifDirectory = outputSet.getOrCreateExifDirectory();
    82                 gpsDirectory = outputSet.getOrCreateGPSDirectory();
     80                gpsDirectory = outputSet.getOrCreateGpsDirectory();
    8381
    8482                gpsDirectory.removeField(GpsTagConstants.GPS_TAG_GPS_IMG_DIRECTION_REF);
     
    9189                exifDirectory.removeField(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL);
    9290
    93                 outputSet.setGPSInDegrees(mimg.lon(), mimg.lat());
     91                outputSet.setGpsInDegrees(mimg.lon(), mimg.lat());
    9492                try (OutputStream os = new BufferedOutputStream(new FileOutputStream(finalPath + ".jpg"))) {
    9593                    new ExifRewriter().updateExifMetadataLossless(imageBytes, os, outputSet);
     
    9997                LOGGER.info("Streetside export cancelled");
    10098                return;
    101             } catch (IOException | ImageReadException | ImageWriteException e) {
     99            } catch (IOException e) {
    102100                LOGGER.log(Logging.LEVEL_ERROR, e.getMessage(), e);
    103101            }
Note: See TracChangeset for help on using the changeset viewer.