GPS metadata template

Started by javiavid, July 31, 2019, 06:14:10 PM

Previous topic - Next topic

javiavid

Hello, I try to make a metadata template for the GPS points that I use most, but I have a problem because GPS Latitude and GPS Longitude are not saved in the XMP GPS section.
Within the XMP GPS Degrees section it works correctly.
When I apply the template in other photos I get in the middle of the sea.

Mario

Please provide more info so we can help you.

I understand you are trying to make a metadata template which fills some GPS coordinates from variables?
You did not explain which tags you fill, how you fill them, if you use the correct format as expected by IMatch / ExifTool etc.
Many things can go wrong...

Why don't you use IMatch Locations (Map Panel) which have been designed for exactly this purpose? You can even use them in a Metadata Template.
See Locations in the IMatch help for more information.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

javiavid

Hi,
I have 2 images:
1- It has GPS and geoencode.
2-It has no GPS.

I select image 1, I create a template from the metadata / GPS Detail panel.

I select image 2, I select the template and the previously saved GPS data is applied. It works correctly except the GPS Latitude and GPS Longitude data of the XMP GPS section that appears empty, in image 1 if this data is present.

Image 1 is fine on the map, image 2 is in the middle of the sea (blue background, I don't know where it is really located)

To use locations do you need to have GPS information or is it another way to apply GPS positions quickly?

Thanks

Mario

IMatch uses XMP GPS tags internally only. You need to fill these tags, not other GPS tags.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

javiavid


DigPeter

javiavid - if you are trying to copy the GPS data from file 1 to file 2, select 'Location' in the metadata drop menu, click the copy tag at the top, then select the file to be changed, and click on the paste tag.

Mario

Quote from: javiavid on August 01, 2019, 03:39:18 PM
Maybe I am not explaining myself well, I leave you a video.

https://drive.google.com/file/d/1WRg9EA9PvWS1yk9edWrzk8bJkjkjVp1T/view?usp=sharing

Thanks

I don't watch videos for security purposes.
Why don't you just attach a screen shot of your MD template or just explain which data you copy from which tag to which tag in your template. All we can do so far is guessing. We have no info about what you are actually doing.

As said by DigiPeter, if you want to copy location data between files, a MD template is not the right feature to do it.
Use the copy/paste feature in the Metadata Panel: The Caption Menu
or the Copy/Paste Attributes command: Copying Attributes and Metadata Between Files
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

javiavid

Hello Mario,
I thank you for all the help you are giving me, but I am trying to test the program and maybe it is for being a newbie with the program, but I do not understand that applying a template does not work properly, so I try to ask for help.

I have also tried to copy and paste attributes, but the only way to copy these parameters that I need for imatch to correctly display the photo on the map is to activate the last option (All Metadata ...). The problem is that it modifies many parameters that I don't want. (I know it's strange, but I don't know how to show it to you without a video ..)

The only option that works is to copy and paste from the metadata panel, but the problem with this is that it is a slow process.
I give you an example: I am in a folder and I have a photo without GPS, if the template works correctly:
1-Click on drop-down list of templates
2-Select template

Current option copying and pasting from the metadata panel.
1-Search through the folders for a photo that has the GPS I need (a lot of wasted time)
2-Go to metadata, copy
3-Return to the folder that was
4-Metadata, paste

Imagine it with several images from different locations.

I really like imatch, it seems very complete, but this behavior of the templates seems to me an error.
The case that I put you is not so rare, sometimes you use cameras that do not have GPS and it is necessary to do this process.

Thank you

Mario

#8
You are not giving us anything to work with. I have asked multiple times that you show us what you are trying to do in your MD template, which tags you set and how.
I cannot help you when you are not giving us anything to work with. I think you are setting the wrong tags in the wrong way. But I cannot know.

The usual feature in IMatch to set GPS data to files are locations in the Map Panel (I've posted a link in my reply yesterday, did you read the help topic)?
Why do you insist on using MD templates instead of locations? Which tags do you set with which data?

Note that Metadata Templates cannot copy data between files, if this is what you are trying to do. Metadata Templates set data for all selected files from whatever content you have defined in the template.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

javiavid

Ok, I try again, although the video is very well understood. The video does not need to be downloaded, it is viewed from google drive, but I respect that you do not want to see it for security.

I highlight in bold what I want to copy from image 1 to 2.
It is not possible to do this by creating a template, or pasting attributes (you can only paste all, last option).

Image 1

Location Shown Country Code   ES
Location Shown Country Name   Spain
Location Shown City   Madrid
Location Shown Province State   Comunidad de Madrid
Location Shown Sublocation   Calle Ochandiano 18
Location Created Country Code   
Location Created Country Name   
Location Created City   
Location Created Province State   
Location Created Sublocation   
GPS Latitude   40.469444
GPS Longitude   -3.818611

GPS Altitude   681.06 m
GPS Altitude Ref   Below Sea Level
GPS Dest Latitude   
GPS Dest Longitude   
GPS Map Datum   
GPS Timestamp   2019:05:18 17:06:40Z
GPS Latitude   40 deg 28' 10.00" N
GPS Longitude   3 deg 49' 7.00" W
GPS Altitude   681.06 m
GPS Position   40 deg 28' 10.00" N, 3 deg 49' 7.00" W
GPS Dest Latitude   
GPS Dest Longitude   
GPS Image Direction   
GPS Image Direction Unit   



Image 2
Location Shown Country Code   ES
Location Shown Country Name   Spain
Location Shown City   Madrid
Location Shown Province State   Comunidad de Madrid
Location Shown Sublocation   Calle Ochandiano 18
Location Created Country Code   
Location Created Country Name   
Location Created City   
Location Created Province State   
Location Created Sublocation   
GPS Latitude   
GPS Longitude   

GPS Altitude   681.06 m
GPS Altitude Ref   Below Sea Level
GPS Dest Latitude   
GPS Dest Longitude   
GPS Map Datum   
GPS Timestamp   2019:05:18 17:06:40Z
GPS Latitude   40 deg 28' 10.00" N
GPS Longitude   3 deg 49' 7.00" W
GPS Altitude   681.06 m
GPS Position   40 deg 28' 10.00" N, 3 deg 49' 7.00" W
GPS Dest Latitude   
GPS Dest Longitude   
GPS Image Direction   
GPS Image Direction Unit   


My use of templates is to use for example to have a template called home, office, laboratory ... and to be able to reuse these GPS positions when I need them without having to look for them in photos.

Thanks



Mario

QuoteI highlight in bold what I want to copy from image 1 to 2.

As I said above, you cannot use Metadata Templates to copy metadata between files.
Metadata Templates are used to fill the metadata of one or more files, from static values or by copying metadata from the same file.
See the Metadata Templates help topic.

If all you want to set is the GPS lat/lon, you can use a Metadata Panel feature:

1. In the File window, select the file you want to copy the data to (or multiple files)
2. Ctrl-click the file from which you want to copy the data. It becomes the focused file (yellow border)
3. The MD panel now shows (multiple selection) for all tags which have different values for the selected files.
4. Click the pen icon in front of GPS Latitude and GPS Longitude fields to mark them as changed. They now change and show the value of the focused file.
5. Commit your changes by clicking the green hook button or pressing Ctrl+S

All selected files now have the same GPS lat/lon. This of course works with all metadata tags.




For copying metadata between files use the features I have explained above (MD Panel Copy/Paste, Copy/Paste Attributes).

But the real question is: Why do you need to copy GPS data between files? Usually GPS data is set by either

- The camera at the time the image is created
- by importing a track log in the Map Panel
- By assigning a coordinate in the Map panel (works for any number of files!)
- Manually in the MD panel (works for any number of files!)

If you have produced the files in another application, maybe IMatch versioning will help you to automatically copy (propagate) metadata from the master to versions.


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

javiavid

I want to copy static GPS data (which is always the same), such as home, office, study ... make a template with them and apply them quickly when I find a photo or video that does not have GPS.

The question to your answer is:
-Reflex cameras
-360 cameras (not all have GPS)
-Smartphone (sometimes if it has been off for a while and you quickly use the camera the GPS position is not very real or you don't even have it, in the following photos it appears correctly)
-Studios indoors that do not have GPS coverage.

It is very common to shoot photos in places that are repeated because of this I wanted to make templates, to be able to apply them quickly.

Thanks for your help, the trick of selecting several and clicking on the pencil did not know him.

thrinn

As Mario already said in his first answer, that is what Locations are for. Do they not cover your needs?
https://www.photools.com/help/imatch/#geo_locations.htm
Thorsten
Win 10 / 64, IMatch 2018, IMA

Mario

#13
I see no problem setting GPS data in Metadata Templates.

I set XMP lat/lon like this:

and after the write-back the GPS coordinates show up in the MD panel.

GPS coordinates, like many other tags, are not really suited to be set in MD templates. Because ExifTool manages a raw and a formatted value for these tags and both values need to be set.
IMatch fixes this in case of the MD template during write-back.
And of course all the normal ways to set or edit GPS coordinates in IMatch know about this and handle this properly. MD panel, Map Panel, Locations.

I recommend not trying to use MD templates for setting GPS coordinates and location data. That's what the location feature (see my various links and comments above) is for and it knows about all the different things. For example, it also sets GPS timestamps and stuff, which you probably don't in your MD panel and hence you probably produce incomplete GPS records anyway.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

javiavid

Thanks to both of you,
I will use the locations option, it is quite comfortable.