Author Topic: GPS data difference in RAW-Exifs and XMP-Exifs  (Read 7332 times)

Offline platti

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • my gallery on zenfolio
GPS data difference in RAW-Exifs and XMP-Exifs
« on: March 21, 2009, 02:00:39 AM »
Hi,

I do have a difference between the GPS-data PM writes in RAW-Exifs and in XMP-Exifs: In RAW there are only degrees and minutes, but no seconds. In XMP there are degrees, minutes and seconds.
Maybe for that reason the gps-data are not read by other applications?
I attached my settings for IPTC/XMP and the GPS-Settings

[attachment deleted by admin]
greets from a hill
my gallery on zenfolio

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 21708
    • View Profile
    • Camera Bits, Inc.
Re: GPS data difference in RAW-Exifs and XMP-Exifs
« Reply #1 on: March 21, 2009, 07:50:20 AM »
I do have a difference between the GPS-data PM writes in RAW-Exifs and in XMP-Exifs: In RAW there are only degrees and minutes, but no seconds. In XMP there are degrees, minutes and seconds.
Maybe for that reason the gps-data are not read by other applications?
I attached my settings for IPTC/XMP and the GPS-Settings

Photo Mechanic does not currently write GPS data to the EXIF section of RAW files unless the GPS EXIF tags already exist.  If the tags exist, then PM will update them with your new values.  So it sounds like your RAW files have partial GPS EXIF tags, but not all of them (the seconds part).

How is it that your RAW files are getting GPS EXIF tags in them before they come to Photo Mechanic?

-Kirk

Offline platti

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • my gallery on zenfolio
Re: GPS data difference in RAW-Exifs and XMP-Exifs
« Reply #2 on: March 21, 2009, 09:39:14 AM »
Hi Kirk,

Photomechanics does definitly write GPS data in the exif of the RAW:
I applied GPS data to a picture with no GPS data in it, that is the result in the RAWs exif:

**************************************
 Bildbreite in Pixel : 2496
                          Bildhöhe in Pixel : 1664
                 Komprimierte Bits proPixel : {8,8,8}
                    Komprimierungsverfahren : JPEG
                                 Hersteller : Canon
                                     Modell : Canon EOS 5D
                      Adresse der Bilddaten : 89257
                               Orientierung : 1
              Bytes pro komprimiertem Strip : 1032916
                                X-Auflösung : 72.0 ppi (Punkte pro Zoll)
                                Y-Auflösung : 72.0 ppi (Punkte pro Zoll)
                          Auflösungseinheit : Zoll
                          Datum und Uhrzeit : 2009:03:20 14:51:50
                                     Artist : Wolfgang Plattner
                             EXIF-Tag (700) :
                           EXIF-Tag (33723) : {540,469958658,134231810,959459378,808596272,3932700,892612875,724579633,808464688,5898780,...}
                             -- Exif IFD -- :
                            Belichtungszeit : 1/800 s
                         Blendeneinstellung : 4.0
                        Belichtungsprogramm : Aperture priority
                        ISO-Empfindlichkeit : 100
                               Exif-Version : 0221
                Datum/Uhrzeit des Originals : 2009:03:20 14:51:50
          Datum/Uhrzeit der Digitalisierung : 2009:03:20 14:51:50
                   Komponentenkonfiguration : reserviert
                  Verschlussgeschwindigkeit : 9.6 APEX = 1/790 s
                                Blendenwert : 4.0 APEX = F4.0
               Präferenzwert für Belichtung : 0.7
                              Messungsmodus : Pattern
                                      Blitz : Flash did not fire, compulsory flash mode.
                                 Brennweite : 36.0 mm
                  Bemerkungen des Anwenders : 264 Bytes
              Unterstützte Flashpix-Version : 0100
                                   Farbraum : unkalibiert
                            X-Maße in Pixel : 4368
                            Y-Maße in Pixel : 2912
                 -- Interoperability IFD -- :
                            GPS tag version : 0,0,2,2
                    North or South Latitude : N
                     East or West Longitude : E
                     Interoperability-Index : R98
                   Interoperability-Version : 0100
-- Ende des Interoperability IFD, EXIF IFD wird fo:
                 X-Auflösung der Fokalebene : 3086.9 (873600/283) ppi (Punkte pro Zoll)
                 Y-Auflösung der Fokalebene : 3091.3 (1456000/471) ppi (Punkte pro Zoll)
           Auflösungseinheit der Fokalebene : Zoll
                            Bildbearbeitung : Normal
                       Belichtungsverfahren : Automatische Belichtung
                               Weißabgleich : Manueller Weißabgleich
                                  Szenentyp : Standard
                        -- Thumbnail IFD -- :
                        Offset zum JPEG SOI : 76348
                   Bytes im JPEG-Datenstrom : 12909
            -- Main IFD wird fortgesetzt -- :
                              -- GPS IFD -- :
                                   Latitude : 47°20'0.0"
                                  Longitude : 9°36'0.0"
******************************************************************

In the last two lines are the GPS data without seconds, in the XMP-file are the correct data:

******************************************************************
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.1.1">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
            xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/">
         <Iptc4xmpCore:CreatorContactInfo rdf:parseType="Resource">
            <Iptc4xmpCore:CiAdrCity>Koblach</Iptc4xmpCore:CiAdrCity>
            <Iptc4xmpCore:CiAdrCtry>Austria</Iptc4xmpCore:CiAdrCtry>
            <Iptc4xmpCore:CiEmailWork>wolfvomberg@gmx.at</Iptc4xmpCore:CiEmailWork>
         </Iptc4xmpCore:CreatorContactInfo>
         <Iptc4xmpCore:CountryCode>AUT</Iptc4xmpCore:CountryCode>
         <Iptc4xmpCore:Location>xxxxx</Iptc4xmpCore:Location>
      </rdf:Description>
      <rdf:Description rdf:about=""
            xmlns:exif="http://ns.adobe.com/exif/1.0/">
         <exif:GPSLatitude>47,20.020N</exif:GPSLatitude>
         <exif:GPSLongitude>9,36.338E</exif:GPSLongitude>
      </rdf:Description>

*********************************************************************
greets from a hill
my gallery on zenfolio

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 21708
    • View Profile
    • Camera Bits, Inc.
Re: GPS data difference in RAW-Exifs and XMP-Exifs
« Reply #3 on: March 21, 2009, 10:46:29 AM »
Wolfgang,

Photomechanics does definitly write GPS data in the exif of the RAW:

I never said that PM doesn't write GPS data to EXIF in all cases.  If the EXIF GPS tags do not exist in the RAW file, PM won't create them.  If they exist already, PM will update them.

So the question is: where did your RAW file get GPS data put into its EXIF data originally?

-Kirk

Offline platti

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • my gallery on zenfolio
Re: GPS data difference in RAW-Exifs and XMP-Exifs
« Reply #4 on: March 21, 2009, 11:58:12 AM »
Hi,

There were NO gps-data in the exifs of the RAW-file as yuo can see here before I applied gps-data:

********************************************
 Bildbreite in Pixel : 2496
                          Bildhöhe in Pixel : 1664
                 Komprimierte Bits proPixel : {8,8,8}
                    Komprimierungsverfahren : JPEG
                                 Hersteller : Canon
                                     Modell : Canon EOS 5D
                      Adresse der Bilddaten : 89257
                               Orientierung : 1
              Bytes pro komprimiertem Strip : 1032916
                                X-Auflösung : 72.0 ppi (Punkte pro Zoll)
                                Y-Auflösung : 72.0 ppi (Punkte pro Zoll)
                          Auflösungseinheit : Zoll
                          Datum und Uhrzeit : 2009:03:20 14:51:50
                                     Artist : Wolfgang Plattner
                             EXIF-Tag (700) :
                           EXIF-Tag (33723) : {540,469958658,134231810,959459378,808596272,3932700,892612875,724579633,808464688,5898780,...}
                             -- Exif IFD -- :
                            Belichtungszeit : 1/800 s
                         Blendeneinstellung : 4.0
                        Belichtungsprogramm : Aperture priority
                        ISO-Empfindlichkeit : 100
                               Exif-Version : 0221
                Datum/Uhrzeit des Originals : 2009:03:20 14:51:50
          Datum/Uhrzeit der Digitalisierung : 2009:03:20 14:51:50
                   Komponentenkonfiguration : reserviert
                  Verschlussgeschwindigkeit : 9.6 APEX = 1/790 s
                                Blendenwert : 4.0 APEX = F4.0
               Präferenzwert für Belichtung : 0.7
                              Messungsmodus : Pattern
                                      Blitz : Flash did not fire, compulsory flash mode.
                                 Brennweite : 36.0 mm
                  Bemerkungen des Anwenders : 264 Bytes
              Unterstützte Flashpix-Version : 0100
                                   Farbraum : unkalibiert
                            X-Maße in Pixel : 4368
                            Y-Maße in Pixel : 2912
                 -- Interoperability IFD -- :
                     Interoperability-Index : R98
                   Interoperability-Version : 0100
-- Ende des Interoperability IFD, EXIF IFD wird fo:
                 X-Auflösung der Fokalebene : 3086.9 (873600/283) ppi (Punkte pro Zoll)
                 Y-Auflösung der Fokalebene : 3091.3 (1456000/471) ppi (Punkte pro Zoll)
           Auflösungseinheit der Fokalebene : Zoll
                            Bildbearbeitung : Normal
                       Belichtungsverfahren : Automatische Belichtung
                               Weißabgleich : Manueller Weißabgleich
                                  Szenentyp : Standard
                        -- Thumbnail IFD -- :
                        Offset zum JPEG SOI : 76348
                   Bytes im JPEG-Datenstrom : 12909
****************************************************************

The lines:

****************************************************************
-- Main IFD wird fortgesetzt -- :
                              -- GPS IFD -- :
                                   Latitude : 47°20'0.0"
                                  Longitude : 9°36'0.0"
****************************************************************
have been added by PM after applying gps-data.
greets from a hill
my gallery on zenfolio

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 21708
    • View Profile
    • Camera Bits, Inc.
Re: GPS data difference in RAW-Exifs and XMP-Exifs
« Reply #5 on: March 21, 2009, 01:45:51 PM »
There were NO gps-data in the exifs of the RAW-file as yuo can see here before I applied gps-data:

The lines:

****************************************************************
-- Main IFD wird fortgesetzt -- :
                              -- GPS IFD -- :
                                   Latitude : 47°20'0.0"
                                  Longitude : 9°36'0.0"
****************************************************************
have been added by PM after applying gps-data.

What program is producing this data?

-Kirk

Offline dennis

  • President
  • Camera Bits Staff
  • Sr. Member
  • *****
  • Posts: 419
    • View Profile
    • Camera Bits, Inc.
Re: GPS data difference in RAW-Exifs and XMP-Exifs
« Reply #6 on: March 21, 2009, 02:12:53 PM »
Hi Wolfgang,

Photo Mechanic right now only puts GPS data into the XMP/Exif data for RAW files (unless the GPS TIFF tags are already present).  The utility you are using (what is it?) is showing your the Exif data that is stored in XMP.  This is different from the traditional (TIFF-based) Exif data that a camera such as a Nikon DSLR with attached GPS would store.

As in your example, the XMP has:

        <exif:GPSLatitude>47,20.020N</exif:GPSLatitude>
        <exif:GPSLongitude>9,36.338E</exif:GPSLongitude>

The format for GPS in XMP is dd°mm.mmm' so the seconds is not needed because the minutes has a fractional value.

Apparently the utility you are using to dump this information is only reading the whole part of the minutes (e.g. longitude of 36 instead of 36.338 which is equivalent to 36 minutes and 20.3 seconds.

You need to update or get a fix for your utility to properly read XMP GPS data.

--dennis

Offline platti

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • my gallery on zenfolio
Re: GPS data difference in RAW-Exifs and XMP-Exifs
« Reply #7 on: March 21, 2009, 02:51:52 PM »
Hi,
Hm, meanwhile I recognized myself, that these are no RAW-exifs. I got these data read by graphicconverter, this app makes a difference in its listing between "exif" and "exiftool", and as I'm no "professional", I mixed it up.

But nevertheless, the only application I used in this case for setting GPS was PM. And these data are not readable by other applications.
greets from a hill
my gallery on zenfolio

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 21708
    • View Profile
    • Camera Bits, Inc.
Re: GPS data difference in RAW-Exifs and XMP-Exifs
« Reply #8 on: March 21, 2009, 03:17:16 PM »
Hm, meanwhile I recognized myself, that these are no RAW-exifs. I got these data read by graphicconverter, this app makes a difference in its listing between "exif" and "exiftool", and as I'm no "professional", I mixed it up.

But nevertheless, the only application I used in this case for setting GPS was PM. And these data are not readable by other applications.

Right.  Not all applications look for GPS data in XMP.  But more and more of them will as time goes on.

-Kirk

Offline platti

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • my gallery on zenfolio
Re: GPS data difference in RAW-Exifs and XMP-Exifs
« Reply #9 on: March 22, 2009, 12:17:23 AM »
Hi Kirk (and Dennis)

Thanks for your patience on answering my questions. I appreciate that.
So far the "exif-question" itself is answered, but where do these truncated gps-data without the seconds come from?
And: how can I read out the exif-data of the RAW-file on a mac?

Edit:
I use exiftool in the terminal now :)
It seems that Graphicconverter shows the gps-data truncated in its "exif"-tab, when gps-data are written by PM.
« Last Edit: March 22, 2009, 03:05:42 AM by platti »
greets from a hill
my gallery on zenfolio