Bug 508047

Summary: Reverse geocoding set number street twice into XMP-lr:HierarchicalSubject
Product: [Applications] digikam Reporter: mahikeulbody <51mfxqck>
Component: Geolocation-ReverseGeoCodingAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 8.8.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.8.0
Sentry Crash Report:
Attachments: digikamrc

Description mahikeulbody 2025-08-09 11:15:05 UTC
Process reverse geocoding (enabling 'add all address elements') a photo which location includes a street number.
Apply.

Check Place into  the tag manager or check XMP-lr:HierarchicalSubject ; the hierarchy looks like :
<country>/<state>/.../<street>/<street number>/<street number>
Comment 1 Maik Qualmann 2025-08-09 11:35:28 UTC
I can't reproduce the error. Do you know how a hierarchical tag is structured in metadata?

Maik
Comment 2 Maik Qualmann 2025-08-09 11:38:03 UTC
You may have forgotten a street/house number template entry somewhere in the reverse geolocation tag list.

Maik
Comment 3 mahikeulbody 2025-08-09 11:38:21 UTC
Yes, I know. But even without to know, you can check that with the tag manager.
Comment 4 mahikeulbody 2025-08-09 11:49:51 UTC
(In reply to Maik Qualmann from comment #2)
> You may have forgotten a street/house number template entry somewhere in the reverse geolocation tag list.

I have no metadata templates defined.
Comment 5 mahikeulbody 2025-08-09 11:56:01 UTC
> I can't reproduce the error. 

Have you enable 'add all address elements' ?
Comment 6 Maik Qualmann 2025-08-09 13:44:14 UTC
I'm talking about the red OSM placeholders. Yes, I've added all the address elements. Please post this entry from the digikamrc configuration file: [Geolocation Edit Settings][Reverse Geocoding Widget]

Maik
Comment 7 mahikeulbody 2025-08-09 13:52:32 UTC
Created attachment 183907 [details]
digikamrc
Comment 8 Maik Qualmann 2025-08-09 14:42:55 UTC
Yes, of course, you have the house number again (probably by mistake) in the OSM placeholder.

Maik
Comment 9 mahikeulbody 2025-08-09 14:49:34 UTC
(In reply to Maik Qualmann from comment #8)
> Yes, of course, you have the house number again (probably by mistake) in the OSM placeholder.

Indeed. It is a little bit strange since I never edited this file. I cannot think of a way to do a mistake in this case...

So I just have to remove
Spacerlistname 12= ...    and
Spacerlisttype 12= ... 
lines
and set Spacers count=12 (instead of 13)

or there is a cleaner way to do ?
Comment 10 Maik Qualmann 2025-08-09 15:06:14 UTC
Do not change manually in the config, simply use the GUI, expand the OSM placeholder and remove the last house number via the context menu.

Maik
Comment 11 mahikeulbody 2025-08-09 15:14:37 UTC
(In reply to Maik Qualmann from comment #10)
> Do not change manually in the config, simply use the GUI, expand the OSM
> placeholder and remove the last house number via the context menu.

Ah... so I probably added myself another house number by mistake through the GUI some day in the past.

Does to click "add all address elements" could reset the whole hierarchy ?

Thanks for the help.
Comment 12 mahikeulbody 2025-08-11 06:26:04 UTC
This issue appears into the BUGFIXES list (https://invent.kde.org/graphics/digikam/-/blob/master/NEWS?ref_type=heads)

I thought the problem was with me. Did you fix something? I don't see any commit related to that.
Comment 13 Maik Qualmann 2025-08-11 06:42:54 UTC
Even if nothing has been fixed, the bug is listed in the NEWS file.

Maik