Reverse Geo with .MOV files (State not showing in Imatch Standard Locations)

Started by kiwilink, January 28, 2025, 06:28:42 PM

Previous topic - Next topic

kiwilink

I have two databases (One for Images and one for Videos).  I have no problems with my Images.  However, I just looked in IMATCH Standard Categories/Location) and I only see 10 images with a location showing up and I have 15,000 videos.  I went and clicked on an Image and the map shows where I shot the video (Kentucky).  So in the map panel I right clicked on the target marker and chose reverse Geocoding (I tried checking and unchecking fill only empty fields).  Then I went to see if the Country and State were showing and it was not. Hit F5 to update the category. It's not filling in the Metadata so I am assuming that for all 15,000 videos (mostly Iphone) the Geo data is there but not being loaded into the database.  I have to assume that in Edit/Preferences there is something I don't have set correctly.  No issues in the log and when I click the pencil it appears to write all the Metadata.  Or, do I have to manually Reverse Geocode all the videos from a special window or App within IMATCH?

I'm definitely missing something here.  If I Have to do Reverse Geocoding will there be a charge from Google or is this just an IMATCH database Writeback?

I'm surprised after all these years I didn't catch this (I mostly focus on the Image database).

Thank you!

Kiwilink

Mario

QuoteIf I Have to do Reverse Geocoding will there be a charge from Google
If you use Google and your free quota is exceeded, Google will charge you. Same for HERE, BING etc.

GeoNames.org is free, but using this free project to reverse-geociding 10,000 files would be rather unfair and probably they will ban your IP address.

There are

1. GPS coordinates
2. Location data

If you (or your device) adds GPS coordinates, this does not fill location data like country or city.
The location data tags in the MD Panel is empty (your screen shot) so you did not perform reverse-geocoding yet and also did not fill the data manually.

The default data-driven category Images\Location uses "Composite\MWG-Country\Country\0" which is linked to "XMP::iptcExt\LocationShownCountryName\LocationShownCountryName".

Tip: You can see the important Location data in the MD Panel using the "6. IPTC Location" layout.

If this tag is not filled, the file shows in the Location category in the "Other" child category.

kiwilink

Mario

Thanks for the reply.  I think something else is wrong.  I tried several different images and did a reverse Geocode and its not filling any info in.  See attached text file for Output panel and the EXIFtool after I ran Reverse Geocode.  No errors in the log either.

Thanks

Kiwilink

PS  I opened AutoTagger and tried to use the same file to get some suggest Keywords using Google Cloud Vision and got a snap even though I have an API key so is this the issue?  When using Reverse Geocoding must I choose a service?

Mario

Did you write back before?
After reverse geocoding, did you check the results in the Metadata Panel using the "6. IPTC Location" layout?

Is there an XMP file with the same name as the .MOV file in the same folder?

Note that IMatch switched to embedding XMP intro MOV files back in 2021 and the release notes contained instructions how to import existing XMP into MOV files before deleting the sidecar file: Importing XMP Metadata
Did you do that?


In the ExifTool output, I see that IMatch writes only coordinates, since no location data exists:
-XMP-iptcExt:LocationShown=[{City=,CountryCode=,CountryName=,GPSLatitude#=38.637000,GPSLongitude#=-90.258700,ProvinceState=,Sublocation=}]

How did you add GPS coordinates?
Which service do you use for reverse geocoding and with which settings?

When I add your GPS coordinates to a MOV video and do a reverse geocoding with GeoNames.org, I see this:

Image1.jpg

and when I write back and look into the MOV afterwards, it contains an XMP record with the location data:

[XMP-iptcExt]  Location Shown                  : [{City=St Louis,CountryCode=USA,CountryName=United States,GPSAltitude=0,GPSLatitude=38.637,GPSLongitude=-90.2587,Identifier=[],LocationId=[],LocationName=,ProvinceState=Missouri,Sublocation=Duncan Ave 4481,WorldRegion=}]
[XMP-iptcExt]  Location Shown City            : St Louis
[XMP-photoshop] City                            : St Louis

which means that this works as it should.

kiwilink

There are no xmp sidecars in the directory (only the .Mov).  I will look back in the documentation for this panel view but I don't the 6.IPTC layout although I have seen you reference it before in General Questions.  Is this a Layout that I create?  I think I am missing a lot of IMATCH default layouts (see my attachment on what the help menu says).  Where did all these go?    

As for what service do I use for Geocoding, that was my first time trying to run it.  I thought it would use the same service for Autotagging (which now works because I had to update my API Key).  I attached my settings in Edit and Maps/Geo.  It is set for Google so is there a different service for Geocoding and a different service for Autotagging?

Ill go back and reread the documentation again. 


Mario

ADMIN: I have removed your second screen shot, because it contained your Google API key. NEVER publish API keys. I recommend you create a new API key now, in case somebody (or a bot) already noticed your API key.


QuoteIs this a Layout that I create?

No. See TODO: New Default Metadata Panel Layouts in Welcome to IMatch 2023!
Apparently you missed that step or decided not to do it back when IMatch 2023 was released.

QuoteIt is set for Google so is there a different service for Geocoding and a different service for Autotagging?

Yes. See API Keys for Maps and Geocoding for information about how to get API keys for the service you want to use.
The API key for AutoTagging in Google is different than the API keys you use for reverse geocodng. The help topic explains which options you must enable for Google reverse geocoding to work.

After getting an API key and enabling the options explained in the help, select Google for reverse geocoding:

Image1.jpg

The name of the selected service is displayed in the reverse geocoding dialog:

Image2.jpg

If you use the wrong API key and try to do a reverse geocoding via Commands > File > Reverse Geocoding (Ctrl+M, G) you should get an error message.

See Reverse Geocoding for all details.

kiwilink

Mario

Thank you for saving me from myself.  I was so focused on my problem I didn't pay attention.  Key is deleted.  Thanks again for catching this.

Everything is now working.  Yes, I missed the announcement on the new Layout panels.  Got them now.  Thanks.

What I failed to understand was the concept that if you had Latitude and Longitude you don't automatically get the City, State, Country (Location Data).  I mistakenly thought when you have Lat/Long the other fields were automatically filled in.

Last question... For files with absolutely know GPS data, Can I just go to the Metadata Panel, use the Location layout, select all the images from that location, and enter Country Code, Country, State, and City (skip Latitude, Longitude, and elevation) without harming anything within IMATCh?  Is this a bad practice.    This will at least let me use the filter panel to select by State or City. 

Thanks again for deleting my attachment.

Kiwilink

PS I' m noticing in the IMATCH sample categorieies (Location) for every city it shows I see a subcategory of "Other" that has the same number of images as the city.



PandDLong


Yes, you can add the text fields of Country Code, Country, State, City - and Location - without creating an issue in IMatch.   I do it all the time.

There isn't any logic that needs them to be lined up - you can enter them even if there are GPS co-ordinates if that is more efficient for you than reverse geo-coding.

Michael

kiwilink

PandDLong

Thank you!  Do you have an "Other" category under each of your City Locations that have the same images as the City?

Thanks

Kiwilink

Mario

Entering location information in the Metadata Panel is fine.
If you find that you enter the same location data often (taking photos at the same place or venue), I recommend to creating an IMatch Location and then just apply the location (which sets coordinates and location info at the same time).

If you have many locations, consider using AutoFill instead. Works for locations, but also for all other data you have to enter frequently.

QuoteThank you!  Do you have an "Other" category under each of your City Locations that have the same images as the City?

I don't understand this...?

Data-driven categories optionally create an "Other" category on each level, for collecting all files which have no data in the tag used for that level.

For example, for the "City" level in the default IMatch Standard Categories|Images|Locations category, Other contains all files without a value in the City tag.

Having other is usually helpful, because it shows you all files with missing data. If you don't need other, you can disable it i nthe settings for the data-driven categories, individually, for each level.

kiwilink

Mario:
 
Thanks for the reply.  You asked:



 
What I was saying was that when I look at "IMATCH Sample Categories" every city that I have has a "Other" subcategory under the city. 
 

 

There are four images in "City"  (Middlesboro) and four images in "other".  They are the exact same images.  What they have in common is that all four have ISO Country Code, Country, State, and City with data entered into these fields.  None of them have anything entered in the Location field.  I'm assuming that if you have a blank field in any of these five, your images will end up showing in the "other".  Is that right?

I tested in (see attached).  As soon as I went to the Metadata panel and entered something in the Location field, it stopped showing up in "Other" subcategory.

Does this mean that I either need to find the street and enter in Location or at least type something into Location or I will always see the image in Other?  Because 95% of my Images have no Geodata from the camera I will take your advice and create a location for the most used location spots. 

I'll wait to hear from you if my assumption above is correct.  If I have 103,000 images and 90% have no geodata (except the Iphone images) I have a lot of images to update with Geo information.  Over all these years I have done like others and created a Category called Travel and under that Countries and Cities.  But I'd like to use what IMATCH is providing.

Thanks

Kiwilink

I'm also assuming if I create a Location and save it in Map Panel for my database I can't transfer it to my Video database
 

Mario

QuoteWhat I was saying was that when I look at "IMATCH Sample Categories" every city that I have has a "Other" subcategory under the city.
This is normal. The level below city is location. And if there are files without a location, IMatch creates an "Other" child category.
middlesboro has e.g. 4 files without a location. Click on the "Other" category to see them. When you fill the location and the category refreshes, "Other" will be gone.

If you don't want Other, disable it in the properties of the level.

hluxem

QuoteI'm also assuming if I create a Location and save it in Map Panel for my database I can't transfer it to my Video database

All of my files have location data. I started using the Imatch locations, but found they are to limit if you have too many. I think the Autofill function Mario mentioned is much faster. It also allows you to copy and paste from a spreadsheet, so very easy to transfer from one to the other database. 

Heiner