Issue When Assigning a Location Using a Metadata Template

Started by PandDLong, Today at 07:26:30 AM

Previous topic - Next topic

PandDLong

I use the Locations function in iMatch for frequent photo locations.  I often use a metadata template to manually assign the Location information to selected files  (most of my files do not have camera provided GPS).

I just had some situations where it didn't seem to work.  After some experiments, it appears to be setting tags that are empty AND emptying tags that have data.

I have attached screenshots of the geo-tags (the GPS tags are XMP:Exif and all others are the IPTC Extension Location Shown and Created tags as per the panel headers; the tag labelled "GPS Source' is mapped to an IPTC Extension tag that I have repurposed). 

The two screenshots are the different results each time I apply the template (a screenshot of it also attached).  The results of applying the template alternates between these two screenshots.

My starting situation had been as per the first screenshot where I had entered the Country manually many days prior. Then when I learned more particulars of this vintage 1936 photo, I applied the metadata template and got the result as per the 2nd screenshot.

I have been using Locations and templates in this manner for a few years but don't recall this problem happening before.  However, this situation where I partially enter information before applying the template may be new as I have just started doing vintage photos where information is determined in pieces.

A side note, you will see the autofill indicator on some tags.  That is something new that I have just started to try out but this location is not part of my test set but I did delete the autofill template as a further test and it made no difference to the above.

Michael


Mario

Which takes do you use in your MD Panel layout? The official IPTC tags IMatch uses for location data, reverse geo-coding etc.
Location data is really complex, because it is a structured tag and many tags from different XMP specifications interact with each other, often 3 tags must be changed.

The MD Panel layout "6. IPTC Location" presets the location data (created and shown as needed), with coordinates, location info etc. These are structured and repeatable tags (see help). Setting individual tags from a structured tags by means of metadata templates is not really something that should be done.

Use reverse-geocoding. Or IMatch locations.
Or a completely filled AutoFill template which sets these tags.
Or use the specifically made MD Panel layout "6. IPTC Location" which was introduced in IMatch 2023 almost two years ago.

If have never used the "LocationId" tag you set in your template and I must read the IPTC specs first to see what it does, if it is linked with any other tags and why you see the effect you see. Until I find time to look into your issue, I recommend you don't do this and instead enter location data via one of the "official" ways.

Since you are reporting a bug, I will move this thread into the bug report board so it stays on my to-do list.
I will look into it as soon as a I find a free time slot.

Update

Quick check revealed that this only happens when you combine individual location tags (?) with the option to apply an IMatch location. Split your template into two (one for the loc, one for the id) as a work-around until I've had time to analyze this.

Ps.: The IPTC says that the location id is a globally unique identifier for the location (from a map service or something). Setting it to a random text is maybe not a good idea, unless you are sure that the file will never be used outside your environment.