Changeset 36278 in osm


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

Update MicrosoftStreetside to use apache commons-imaging 1.0.0-alpha5

Location:
applications/editors/josm/plugins/MicrosoftStreetside
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/MicrosoftStreetside/gradle.properties

    r36228 r36278  
    99# Minimum required JOSM version to run this plugin, choose the lowest version possible that is compatible.
    1010# You can check if the plugin compiles against this version by executing `./gradlew compileJava_minJosm`.
    11 plugin.main.version=18877
     11plugin.main.version=19044
    1212#plugin.version=
    1313# Version of JOSM against which the plugin is compiled
  • 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.