Modify

Opened 15 months ago

Closed 5 months ago

Last modified 5 months ago

#22819 closed defect (fixed)

[Patch] JOSM shows geotagged images in the wrong location

Reported by: GerdP Owned by: team
Priority: normal Milestone: 24.01
Component: Core image mapping Version: tested
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. load saved session with several layers of geotagged images, possibly containing some missing images
  2. activate "center view" in the image view popup
  3. click on "Next" button

What is the expected result?

JOSM shows the next image and centers the map view to the location of that image

What happens instead?

JOSM shows the next image but may not center the view correctly. If I got that right this happens when the *.joz file refers to an image which no longer exists on the disk. The view seems to be centered on that non-existing image but the popup shows another image.

Please provide any additional information below. Attach a screenshot if possible.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-03-14 22:49:24 +0100 (Tue, 14 Mar 2023)
Revision:18693
Build-Date:2023-03-15 02:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18693 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 2009 (19045)
Memory Usage: 1238 MB / 1972 MB (223 MB allocated, but free)
Java version: 17.0.4+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_DE
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18531, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\HWConsole.exe]
Dataset consistency test: No problems found

Plugins:
+ OpeningHoursEditor (35924)
+ RoadSigns (36038)
+ apache-commons (36034)
+ buildings_tools (36011)
+ contourmerge (v0.1.9)
+ ejml (35924)
+ geotools (36028)
+ jackson (36034)
+ jaxb (35952)
+ jts (36004)
+ o5m (35893)
+ opendata (36025)
+ pbf (36034)
+ poly (35976)
+ reltoolbox (35976)
+ reverter (36043)
+ undelete (36011)
+ utilsplugin2 (36011)

Validator rules:
+ c:\josm\core\resources\data\validator\combinations.mapcss
+ c:\josm\core\resources\data\validator\geometry.mapcss
+ c:\josm\core\resources\data\validator\unnecessary.mapcss
+ d:\java_tools\JOSM\mygeometry.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Rules/GermanySpecific&zip=1

Last errors/warnings:
- 00000.709 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.712 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00002.311 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 00347.638 E: java.io.FileNotFoundException: F:\osm\bilder\2023-01-06\DSC_2551.JPG (Das System kann die angegebene Datei nicht finden)
- 00353.942 E: java.io.FileNotFoundException: F:\osm\bilder\2023-01-06\DSC_2551.JPG (Das System kann die angegebene Datei nicht finden)
- 00367.577 E: java.io.FileNotFoundException: F:\osm\bilder\2023-01-06\DSC_2551.JPG (Das System kann die angegebene Datei nicht finden)
- 00374.726 E: java.io.FileNotFoundException: F:\osm\bilder\2023-01-06\DSC_2551.JPG (Das System kann die angegebene Datei nicht finden)
- 00382.654 E: java.io.FileNotFoundException: F:\osm\bilder\2023-01-06\DSC_2551.JPG (Das System kann die angegebene Datei nicht finden)
- 00395.134 E: java.io.FileNotFoundException: F:\osm\bilder\2023-01-06\DSC_2551.JPG (Das System kann die angegebene Datei nicht finden)

Attachments (0)

Change History (8)

comment:1 by GerdP, 15 months ago

Version: latesttested

Same problem occurs with tested version r18678.

comment:2 by GerdP, 15 months ago

Further info: I've extracted the file session.jos, removed the entry about the missing image and updated the *.joz with the modified file. Is there a "normal" way to get rid of an non-existing image in a saved session? This seems to fix the problem for the missing image.
I don't remember if I removed the image within JOSM or not, but I am pretty sure that I did it intentionally.

So, it seems the eror handling with missing images in JOSM is somehow wrong. Not sure if it should show a warning about the missing image or if it should silently jump to the next one (and center the view correctly).

comment:4 by GerdP, 5 months ago

Summary: JOSM shows geotagged images in the wrong location[Patch] JOSM shows geotagged images in the wrong location

comment:5 by GerdP, 5 months ago

Summary: [Patch] JOSM shows geotagged images in the wrong locationJOSM shows geotagged images in the wrong location

comment:6 by GerdP, 5 months ago

Summary: JOSM shows geotagged images in the wrong location[Patch] JOSM shows geotagged images in the wrong location
  • src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java

    C:\josm\core>svn diff src
     
    979979    private void updateButtonsNonNullEntry(IImageEntry<?> entry, boolean imageChanged) {
    980980        if (imageChanged) {
    981981            cancelLoadingImage();
     982            // don't show unwanted image
     983            imgDisplay.setImage(null);
    982984            // Set only if the image is new to preserve zoom and position if the same image is redisplayed
    983985            // (e.g. to update the OSD).
    984986            imgLoadingFuture = imgDisplay.setImage(entry);

comment:7 by skyper, 5 months ago

Component: CoreCore image mapping

comment:8 by GerdP, 5 months ago

Resolution: fixed
Status: newclosed

In 18945/josm:

fix #22819: JOSM shows geotagged images in the wrong location

  • if a new image should be shown, make sure that we don't show the previous one. Instead, show only the loading message.

comment:9 by GerdP, 5 months ago

Milestone: 24.01

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.