IPCT Location infos not readable anymore

Started by hannes_hab, October 21, 2023, 05:56:15 PM

Previous topic - Next topic

hannes_hab

Since the last version (I think) it is not possible to read he complete IPTC Location Infos - only "ISO Country Code" is imported by my RAW Editor (Aftershot Pro). It makes no difference it I do reverse Geocoding or fill the fields by hand.
This worked fine with older versions.

Mario

Legacy IPTC or XMP IPTC?
Location shown and or location created?
Which IMatch version?
RAW file or other image format?
How to you input the data? Do you use the IPTC Location Metadata Panel layout or do you use the old Composite tags?
Does the data show in IMatch?
Is the data stored in the image? Did you check e.g. with the IMatch Metadata Analyst or the ExifTool Command Processor?

Please attach a sample image (or send, with a link back to this topic to support email address) so we can have a look.


I've made a quick check.
Add GPS data to a file via the map panel.
Reverse geocode to fill in location.
Write back.

Open File in Adobe Photoshop.
Location data shows.

Add file to an Adobe Lightroom catalog.
Location data is showing and file is placed on the Map correctly.

Looking at the data in the file, XMP location tags are all filled.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

#2
Legacy IPTC or XMP IPTC?
I dont really know, but I think XMP IPTC because ASP reads and writes XMP-Sidecare-Files
Location shown and or location created?
A location created in ASP is shown in Imatch (everything), A location created with Imatch (for me the primary work in Imatch) - only IPTC Country Code, GPS Data and Keywords created by IPTC Location Data is shown in ASP.
Which IMatch version?
With the newest version. Everything worked with older versions. Unfortunately I dont really know the last version it worked, because if there is a new version available I install it - but sure it did work in August 2023.
RAW file or other image format?
Makes no difference.
How to you input the data? Do you use the IPTC Location Metadata Panel layout or do you use the old Composite tags?
I use the map to search the location and do Auto-Geotagging with it - but it make no difference if I fill the data by hand.
I use a custom Panel Layout for several years.
Does the data show in IMatch?
Yes.
Is the data stored in the image?
Yes. But now I see what you mean with created or shown:
[XMP-iptcCore]  Country Code                    : AUT
[XMP-iptcExt]  Location Created GPS Altitude  : 801.27 m
[XMP-iptcExt]  Location Created GPS Latitude  : xxx
[XMP-iptcExt]  Location Created GPS Longitude  : xxx
[XMP-iptcExt]  Location Shown City            : xxx
[XMP-iptcExt]  Location Shown Country Code    : AUT
[XMP-iptcExt]  Location Shown Country Name    : Österreich
[XMP-iptcExt]  Location Shown Province State  : Steiermark
[XMP-iptcExt]  Location Shown Sublocation      : xxx
[XMP-iptcExt]  Location Shown GPS Altitude    : 801.27 m
[XMP-iptcExt]  Location Shown GPS Latitude    : xxx
[XMP-iptcExt]  Location Shown GPS Longitude    : xxx

I think the problem could be that ASP cannot read  "Location Shown" - The bold green things are imported the other not!
Maybe this helps.
Thanks for your help Mario!

hannes_hab

#3
it also worked with the version I used on 10.09.2023
this is shown in the file:
[XMP-x]         XMP Toolkit                     : Image::ExifTool 12.67
[XMP-iptcExt]   Location Shown City             : 8353 Kapfenstein
[XMP-iptcExt]   Location Shown Country Name     : Österreich
[XMP-iptcExt]   Location Shown Province State   : Steiermark
[XMP-photoshop] City                            : 8353 Kapfenstein
[XMP-photoshop] Country                         : Österreich
[XMP-photoshop] State                           : Steiermark

Mario

This is curious. I've found a comment in the configuration file which tells IMatch how to map between tags:

DON't link XMP::photoshop\City\City because this causes ExifTool to duplicate city names.

And I recall having a problem where ExifTool duplicated the city names in the file when writing XMP::LocationShown and/or XMP::LocationCreated City tag values when changing these tags was configured in IMatch to also change XMP::photoshop\City\City.

Composite\MWG-City\City, XMP::iptcExt\LocationShownCity\LocationShownCity and XMP::photoshop\City\City must all hold the same values, with the addition that XMP::iptcExt\LocationShownCity\LocationShownCity can appear multiple times since it is part of the repeatable "XMP::iptcExt\LocationShown" structured tag. And there is also a City in legacy IPTC data which must be updated when the target file has legacy IPTC data.

I thought (and tested) that photoshop::City is written by ExifTool when IMatch writes the composite tag.
I need to investigate this. I've spent the better part of a working week getting the mapping correct - so I thought.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Mario

I've made some changes to the configuration file and I can see all "location" XMP::photoshop tags in my test files.

The XMP::photoshop namespace has country, city and state tags, but no location or street, for reasons only Adobe knows.
One of the many issues with location data, like the fact that native GPS data has lat/lon for "location shown" and "location created" but only one Alt tag...

Try this:

1. Close IMatch.
2. Open the folder "c:\ProgramData\photools.com\IMatch6\config\" in Windows Explorer
3. Make a backup of the file named "immbcfg.xml"
4. Download the attached ZIP and unpack it
5. Replace the "immbcfg.xml" with the one in the ZIP file.
6. Start IMatch.
7. Change the city, country, state in some way. Or mark them as modified  by clicking on the pen in front of these tags in the Metadata Panel. You can do that in the "Default" layout or in the "6. IPTC Location" layout.
8. If you point the mouse cursor at the write-back pen of the file, you should see XMP::photoshop tags listed.
9. Write-back and see if your other software now finds the location data.
10. Do some more tests, like changing location data via the Map Panel and reverse geocoding.

Let me know if it now works for you or if you run into problems.


-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

Thank you for the fast fix!

Yes working again accept location - but location also worked some time ago.
I see the following in this older file:

[XMP-photoshop] City                            : 8353 Kapfenstein
[XMP-photoshop] State                          : Steiermark
[XMP-photoshop] Country                        : Österreich
[XMP-iptcCore]  Country Code                    : AUT
[XMP-iptcCore]  Location                        : Südoststeiermark

Mario

So this change solved the problem?
And you don't see duplicate city names when you change the city in the MD Panel (Composite City in the "Default" MD Panel layout or the city tags in the "6 IPTC Location" structured tags?

Quotebut location also worked some time ago.
This might very well be the case.
I have enhancement and changed the way IMatch maps / synchronizes location data across legacy IPTC and the various location tags in XMP to produce the optimal output. ExifTool does it not all and I've had trouble with unexpected duplication of tag values under some conditions. Nobody is perfect, but I try :)
To fix the problem with your other files, just do the "mark as modified" in the MD Panel, or repeat the reverse geocode and then write back.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

Yes, everything is working, except the location ...
Thank you!
I never noticed a problem with duplicate city names, so far. 

Mario

#9
QuoteYes, everything is working, except the location ...
Where does something not work? In IMatch or your other application?
What do you consider the "location"?
There is an IPTCExt::LocationShown and LocationCreated structured tag that has multiple elements like city and country.
IMatch fills both structured tags.
There is no tag named "location". But there is a tag named "SubLocation". Part of LocationShown/LocationCreated.

Please tell me which tag you actually mean. Use copy as variable from the MD Panel context menu.
The XMP::photoshop namespace has no location tag either. Only country, city, state. IMatch fills these too.
There is a tag named location in IPTCCore. IMatch sets that, too.

Example output for a file with created and shown coordinates and data:

[XMP-iptcCore]  Location                        : Canon Alley
[XMP-iptcExt]  Location Created City          : SE1 9TG London
[XMP-iptcExt]  Location Created Country Code  : GBR
[XMP-iptcExt]  Location Created Country Name  : Vereinigtes Königreich
[XMP-iptcExt]  Location Created Province State : England
[XMP-iptcExt]  Location Created Sublocation    : Bankside
[XMP-iptcExt]  Location Created GPS Altitude  : 4.99 m
[XMP-iptcExt]  Location Created GPS Latitude  : 51 deg 30' 29.91" N
[XMP-iptcExt]  Location Created GPS Longitude  : 0 deg 6' 0.42" W
[XMP-iptcExt]  Location Shown City            : EC4M 7DX London
[XMP-iptcExt]  Location Shown Country Code    : GBR
[XMP-iptcExt]  Location Shown Country Name    : Vereinigtes Königreich
[XMP-iptcExt]  Location Shown Province State  : England
[XMP-iptcExt]  Location Shown Sublocation      : Canon Alley
[XMP-iptcExt]  Location Shown GPS Altitude    : 16.75 m
[XMP-iptcExt]  Location Shown GPS Latitude    : 51 deg 30' 49.99" N
[XMP-iptcExt]  Location Shown GPS Longitude    : 0 deg 5' 53.82" W

The more details, like the actual tag name you refer to, the easier it is to help.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

I did not have a problem within Imatch - but for me it is a tool - its important that the Metadata I apply in Imatch can be read / imported by my raw Converter and Image Tool ASP (Aftershot Pro).

as mentioned above :
"[XMP-iptcCore]  Location                        : Südoststeiermark" - worked ( also for Location)

With this older file (Sept 2023) import worked also for Location
( or in another example output: [XMP-iptcExt]  Location Shown Sublocation      : Glockenspielplatz 7 - not working for Import in ASP with the newest version of Imatch and your fix of the configuration file).

But its no big problem, because I have a workaround for now - Location is copied to the keywords (keywords are imported in ASP) - an I can copy and paste it in ASP to  IPTC Location ...

Mario

#11
I still don't know what the problem is. What does

Quote"[XMP-iptcCore]  Location                        : Südoststeiermark" - worked ( also for Location)
mean? Where did it work?
I have no idea what you are trying to tell me. Show me the location data of the file you are testing with.

Quote( or in another example output: [XMP-iptcExt]  Location Shown Sublocation      : Glockenspielplatz 7 - not working for Import in ASP
Sublocation is mirrored in several other tags. I don't know how standard-compliant ASP is or where they expect location data to be stored. IMatch fills all IPTCExt, photoshop, IPTCCore and legacy IPTC location tags.

Which tag (precise!) is IMatch not filling that you think it should fill? Which tag is ASP importing?
I have no idea how to continue with this.

QuoteLocation is copied to the keywords

IMatch does not copy location data into keywords by itself. How did you to that?
Using metadata templates or maybe IMatch locations. Yes. But not when you enter location data in the normal way using Metadata Panel or use reverse geocoding.

Please download the configuration file attached below and replace the configuration file in "C:\ProgramData\photools.com\IMatch6\config" with it. Set all location data again by reverse geocoding or your metadata template or whatever you use and then check if it works.

Also let me know what the ASP support told you about the location tags they support.
Apparently, they neither support the official IPTC LocationCreated or LocationShown tags. Which is kinda lame.

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

Quote from: Mario on October 24, 2023, 10:05:44 PMPlease download the configuration file attached below
unfortunately I cannot see this file

rvelices

Hello. I have the same issue.

The downloaded cfg seems to correct the issue. However there are some differences in the exiftool calls. Here are the details:

- I mark the 5 location fields as modified in the Metadata browser while a single jpg image is selected
- I click the save metada highlighted yellow pencil icon near the image thumbnail
- It works "fine" in version 2023.2.4 (my desktop). It does not work "fine" in version 2023.3.6 (my laptop)

By looking at the exiftool output panel, we can see the following differences:

1. "good" old version 2023.2.4
...
-sep

-XMP-photoshop:City=Dumbravita
-IPTC:City=Dumbravita
-XMP-photoshop:Country=Romania
-IPTC:Country-PrimaryLocationName=Romania
-XMP-iptcCore:Location=Luceafarului
-IPTC:Sub-location=Luceafarului
-XMP-photoshop:State=Timis
-IPTC:Province-State=Timis
-XMP-iptcExt:LocationShownCountryCode=ROM
-XMP-xmpMM:InstanceID=xmp.iid:2e48e4d6-1cdf-4d28-a55f-ae5a0d4aa7c8
-XMP-iptcExt:LocationShown=
-XMP-iptcCore:CountryCode=ROM
-XMP-iptcExt:LocationShown=[{City=Dumbravita,CountryCode=ROM,CountryName=Romania,ProvinceState=Timis,Sublocation=Luceafarului}]
-xmp:InstanceID=xmp.iid:640c7f9b-4bd6-44a7-9874-6b0a5fcaca19

-XMP:MetadataDate=now
-XMP:ModifyDate=now
...

2. "bad" new version 2023.3.6
...
-sep

-XMP-xmpMM:InstanceID=xmp.iid:8983dc60-2156-41d8-a028-462cf73349ff
-XMP-iptcExt:LocationShown=
-XMP-iptcCore:CountryCode=ROM
-XMP-iptcExt:LocationShown=[{City=Dumbravita,CountryCode=ROM,CountryName=Romania,ProvinceState=Timis,Sublocation=Luceafarului}]
-xmp:InstanceID=xmp.iid:ceaab495-87c6-42fb-b81f-dfe50033fe76

-XMP:MetadataDate=now
-XMP:ModifyDate=now
...

3. new version 2023.3.6 with downloaded immbcfg.xml from above
...
-sep

-XMP-photoshop:City=
-XMP-photoshop:Country=
-XMP-photoshop:State=
-XMP-xmpMM:InstanceID=xmp.iid:aa8c2e13-f052-480b-8a27-f2a4f9e0d936
-XMP-xmp:CreatorTool=photools.com IMatch 23.3.0.6 (Windows)
-XMP-iptcExt:LocationShown=
-XMP-photoshop:City=Dumbravita
-XMP-iptcCore:CountryCode=ROM
-XMP-photoshop:Country=Romania
-XMP-photoshop:State=Timis
-XMP-iptcExt:LocationShown=[{City=Dumbravita,CountryCode=ROM,CountryName=Romania,ProvinceState=Timis,Sublocation=Luceafarului}]
-xmp:InstanceID=xmp.iid:eb9d4324-08a4-4798-9760-8ed817e9d990

-XMP:MetadataDate=now
-XMP:ModifyDate=now
...

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Mario

Quote from: rvelices on November 03, 2023, 05:48:06 PMHello. I have the same issue.

The downloaded cfg seems to correct the issue. However there are some differences in the exiftool calls. Here are the details:
How did you set location data? Reverse geocoding? Filling some tags by hand in the MD Panel? Which tags? Using a Metadata Template? Which tags?

ExifTool should set all XMP and legacy IPTC tags from the structured tag LocationShown with the new configuration file.
You say there are "differences" (which is intentional) but you don't say what you mean by what, if the resulting metadata was OK or if data was missing or duplicated. Please explains.

See also the related discussion currently under way: https://www.photools.com/community/index.php/topic,13712.0.html
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rvelices

Hello Mario,

Location data manually set in MD Panel ( 5 fields below ). I specifically marked all as pending write back by clicking the pencil icon near each field



What I say is that in the latest version with the cfg file you attached:
- the results are "OK" : every one of the 5 fields is written in 3 locations - e.g the city in 3 locations: [IPTC] City, [XMP-iptcExt]  LocationShownCity, [XMP-photoshop] City). No duplicate field detected (ran exiftool with -a option)
- I just underlined FYI that the exiftool command parameters are different than the previous working version


I will look in the related discussion.

rvelices

Hmm... For whatever reason the image of the MD panel that I pasted successfully in the message has disappeared from the post...
So I try an attachment maybe this will let me do it and actually also work.

Mario

I don't simply copying and pasting really works. Always attach files and images.
Please use the 6 IPTC Location layout in the Metadata Panel. It gives you access to all location fields.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Rene Toepfer

#19
Unfortunatelly the config file does not solve this issue.

These values will not be written with latest IM:
[IPTC]          Sub-location                    : Müngersdorf
[IPTC]          Province-State                  : Nordrhein-Westfalen
[IPTC]          Country-Primary Location Name  : Deutschland
I have set the location using GPX file and reverse geo-coding with HERE.

Only this value will be written:
[IPTC]          Country-Primary Location Code  : DEU

With 2023.2.4 everything is fine but not with 2023.3.6, indepentely if fixed immbcfg.xml will be used or not.

After reinstallation and replacement of the config file it works but not for all values: [IPTC] Sub-location will still not be written.

Rene Toepfer

Like the ancient Greek philosopher Archimedes: Heureka!
This issue is solved with the config file of this post: https://www.photools.com/community/index.php/topic,13712.msg96464.html#msg96464

mastodon

Hm, maybe that is related with this: I have made changed Location/City/County in a JPG, it worked. After that I deleted the tags. AND after just few seconds I got back the old, overwritten data back. And I can not delete this old data from that fields (ex.: Berzsenyi u. 16.), just overwrite.

mastodon

My problem have been solved in the next version (2023.4.2), too. Thanks :)

Mario

Quote from: mastodon on November 14, 2023, 08:54:46 PMMy problem have been solved in the next version (2023.4.2), too. Thanks :)
Excellent! Thanks for taking the time to feedback :)
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

yes - thank you, its fine for me too with he new version