photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: plastikman on April 26, 2020, 02:59:51 PM

Title: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: plastikman on April 26, 2020, 02:59:51 PM
I am trying to update and unify all location metadata for my library. For some states/provinces, there are mixed entries in both Dutch (my native language/birth country) and English language. I tried to change all of them to Dutch by editing them in batch in the metadata panel. After crtl + s saving the metadata a reload takes place and they all re-appear in English.


Who can answer these based on their experience? Thanks in advance.

Update: some further research showed some discrepancies between Location Shown and Location Created. Are these fields in some way linked?
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: plastikman on April 26, 2020, 03:47:54 PM
Some more digging. Looks like my metadata custom tab had some different Location fields e.g. Photoshop/XMP city while there is also Composite\MWG::State\State\0. Does the latter update multiple metadata fields?
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: Mario on April 26, 2020, 05:37:02 PM
QuoteUpdate: some further research showed some discrepancies between Location Shown and Location Created. Are these fields in some way linked?

Separate sets of files. Similar to the GPS coordinates for location shown and the GPS coordinates for location created.

IMatch does not make up languages.
If you use rev geocode, make sure you set the language correctly.
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: plastikman on April 26, 2020, 06:13:01 PM
Quote from: Mario on April 26, 2020, 05:37:02 PM
IMatch does not make up languages.
If you use rev geocode, make sure you set the language correctly.

Do I set the language in IMatch preferences (as mentioned above) or in the admin panel of the cloud provider (or both)?
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: plastikman on April 26, 2020, 07:58:19 PM
Another small thing: Vatican City has VA as Country Code while the official 3 letter ISO code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) is VAT. For the other countries I entered the 3-letter code is always automatically entered.
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: Mario on April 26, 2020, 08:20:49 PM
Usually you set the language for the reverse geocoding in the corresponding option in IMatch (Edit > Preferences > GPS and Maps).
IMatch sends the language code to the service together with the coordinates. Not that not all services support all languages.

QuoteAnother small thing: Vatican City has VA as Country Code while the official 3 letter ISO code is VAT. For the other countries I entered the 3-letter code is always automatically entered.

I have no idea what you mean.
Do you refer to a selector in IMatch? Some display? Data filled by IMatch? Data returned by your reverse geocoding provider. Something in Windows...?
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: plastikman on April 26, 2020, 08:58:40 PM
See attachments.

Both in Geo Maps panel -> Edit Location there is a lookup function
As well as in Commands -> File -> Reverse geocode selected files

By default, if you select a country IMatch automatically sets the right 3-letter Country Code. However, when I do a lookup in Google Maps I always get an address with a 2-letter Country Code back. In that case, I have to reselect Germany (since it was already set right from Google) and then IMatch will force the 3-letter Country Code.

With regards to Vatican City, I notice it is not in the country list so that's why I get the 2-letter country code regardless since that is what Google always provides apparently.

With regards to the language:

I notice that Google returns mixed language results in both Dutch and English when I lookup addresses in The Netherlands or Germany (see 2 examples I have attached). So from now on, I have to look more careful which one I selected.
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: Mario on April 26, 2020, 09:15:19 PM
When I look at the IMatch resources, I can find the Vatikan with a 2 and 3 letter code.
Note that I have no control over what Google returns in the reverse geocode data.
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: plastikman on April 26, 2020, 09:17:07 PM
Not showing in my dropdown menu....

Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: Mario on April 26, 2020, 10:29:28 PM
Strange. I see it in English and German...

(https://www.photools.com/community/index.php?action=dlattach;topic=10141.0;attach=24141;image)

Which language have you configured for IMatch?
Open a bug report perhaps so I can look into this for a later version.
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: plastikman on April 27, 2020, 08:54:45 AM
The setting for locale in IMatch preferences was blank. I set it to "en" and restarted but nothing changed, I still cannot see it. I will file a bug report later today.
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: Mario on April 27, 2020, 09:02:43 AM
The "app locale" is only relevant for apps.

This dialog uses the user interface language configured for IMatch (with English as a fall-back).
I ran IMatch in both English and German and I can see the entry in either language setting.

Note that when your geocoding service returns something that is not in the list, you can manually override that and enter your own data.
Since most of these services are U.S.-based there are sometimes issues with non-English resources, locales, names etc.
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: mastodon on April 27, 2020, 09:17:08 AM
I have this 2 or 3 letter problem, too.
Anyway to get lookups to use the 3-letter country ISO code?
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: Mario on April 27, 2020, 10:48:20 AM
You have the problem where and want to lookup what and where?

What your geocoding service returns may only be a tlc or nothing at all...
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: mastodon on April 27, 2020, 02:16:54 PM
Sorry. So, I am using geonames.org, and the propblem is, that it provides only 2 letters for country code. So, this is not an IMatch problem. I don't know, how to set it, to get 3 letter country code. Anybody has a clue?
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: Mario on April 27, 2020, 02:25:46 PM
It does not do 3 letter codes. Most geocoding services only use the two letter code.
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: mastodon on April 27, 2020, 02:49:34 PM
Thanks. :)
Title: Re: Automatic translation of location metadata (+ some other geotagging questions)?
Post by: plastikman on April 28, 2020, 08:57:12 AM
Lookup table override?

Edit: what about just getting Country name and assign country code locally? This already happens automatically when we assign country manually.