Changeset 36278 in osm
- Timestamp:
- 2024-06-06T18:41:48+02:00 (7 months ago)
- Location:
- applications/editors/josm/plugins/MicrosoftStreetside
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/MicrosoftStreetside/gradle.properties
r36228 r36278 9 9 # Minimum required JOSM version to run this plugin, choose the lowest version possible that is compatible. 10 10 # You can check if the plugin compiles against this version by executing `./gradlew compileJava_minJosm`. 11 plugin.main.version=1 887711 plugin.main.version=19044 12 12 #plugin.version= 13 13 # 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 13 13 import javax.imageio.ImageIO; 14 14 15 import org.apache.commons.imaging.ImageReadException;16 import org.apache.commons.imaging.ImageWriteException;17 15 import org.apache.commons.imaging.common.RationalNumber; 18 16 import org.apache.commons.imaging.formats.jpeg.exif.ExifRewriter; … … 80 78 81 79 exifDirectory = outputSet.getOrCreateExifDirectory(); 82 gpsDirectory = outputSet.getOrCreateG PSDirectory();80 gpsDirectory = outputSet.getOrCreateGpsDirectory(); 83 81 84 82 gpsDirectory.removeField(GpsTagConstants.GPS_TAG_GPS_IMG_DIRECTION_REF); … … 91 89 exifDirectory.removeField(ExifTagConstants.EXIF_TAG_DATE_TIME_ORIGINAL); 92 90 93 outputSet.setG PSInDegrees(mimg.lon(), mimg.lat());91 outputSet.setGpsInDegrees(mimg.lon(), mimg.lat()); 94 92 try (OutputStream os = new BufferedOutputStream(new FileOutputStream(finalPath + ".jpg"))) { 95 93 new ExifRewriter().updateExifMetadataLossless(imageBytes, os, outputSet); … … 99 97 LOGGER.info("Streetside export cancelled"); 100 98 return; 101 } catch (IOException | ImageReadException | ImageWriteExceptione) {99 } catch (IOException e) { 102 100 LOGGER.log(Logging.LEVEL_ERROR, e.getMessage(), e); 103 101 }
Note:
See TracChangeset
for help on using the changeset viewer.