Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-24

Fetching GPS Latitude Ref gets Interoperability Index instead of Reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.94-incubator
    • 1.0-alpha1
    • None
    • None
    • Windows XP SP3, java version "1.5.0_17"
      apache-sanselan-incubating-0.97-bin.zip

    Description

      When testing the following example

      https://svn.apache.org/repos/asf/incubator/sanselan/trunk/src/test/java/org/apache/sanselan/sampleUsage/MetadataExample.java

      with apache-sanselan-incubating-0.97 it always stops working throwing a ClassCastException. It seems, that the line

      TiffField gpsLatitudeRefField = jpegMetadata
      .findEXIFValue(TiffConstants.GPS_TAG_GPS_LATITUDE_REF);

      returns the Interoperability Index (R98) instead of the GPS Latitude Ref.

      XResolution: 72
      Date Time: '2008:07:23 18:19:58'
      Date Time Original: '2008:07:23 10:05:21'
      Create Date: '2008:07:23 10:05:21'
      ISO: 64
      Shutter Speed Value: Not Found.
      Aperture Value: 6
      Brightness Value: 81/10 (8,1)
      GPS Latitude Ref: 'R98' <------------------------------------ !!!!!!!
      GPS Latitude: 48, 49, 48, 48
      GPS Longitude Ref: 'E'
      GPS Longitude: 6, 38, 2061/100 (20,61)
      GPS Description: [GPS. Latitude: 49 degrees, 45 minutes, 34,18 seconds N, Longitude: 6 degrees, 38 minutes, 20,61 seconds E]

      Exception in thread "main" java.lang.ClassCastException: [B
      at com.alta4.phasr.MetadataExample.metadataExample(MetadataExample.java:113)

      Attachments

        1. geo1.jpg
          54 kB
          FG
        2. R0013102.jpg
          591 kB
          Christian Junk
        3. sanselan-21.patch
          0.5 kB
          Bill Evans
        4. tiff-tag-exact-directory.patch
          16 kB
          Damjan Jovanovic

        Activity

          People

            Unassigned Unassigned
            christianjunk Christian Junk
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: