Ignore:
Timestamp:
2011-06-01T12:33:42+12:00 (13 years ago)
Author:
sjm84
Message:

Updating the ExifTool perl modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/cpan/Image/ExifTool/GeoTiff.pm

    r16842 r24107  
    44# Description:  Read GeoTiff meta information
    55#
    6 # Revisions:    02/23/04 - P. Harvey Created
    7 #               02/25/04 - P. Harvey Added new codes from libgeotiff-1.2.1
    8 #               02/01/07 - P. Harvey Added new codes from libgeotiff-1.2.3
     6# Revisions:    02/23/2004 - P. Harvey Created
     7#               02/25/2004 - P. Harvey Added new codes from libgeotiff-1.2.1
     8#               02/01/2007 - P. Harvey Added new codes from libgeotiff-1.2.3
    99#
    1010# Reference:    ftp://ftp.remotesensing.org/geotiff/libgeotiff/libgeotiff-1.1.4.tar.gz
     
    1515use strict;
    1616use vars qw($VERSION);
    17 use Image::ExifTool qw(:DataAccess);
    18 
    19 $VERSION = '1.06';
     17use Image::ExifTool qw(:DataAccess :Utils);
     18
     19$VERSION = '1.07';
    2020
    2121# format codes for geoTiff directory entries
     
    20652065
    20662066#------------------------------------------------------------------------------
    2067 # Inputs: 0) ExifTool object reference
    2068 #         1) tag table reference
     2067# Inputs: 0) ExifTool object ref
     2068# Notes: byte order must be set before calling this routine
    20692069sub ProcessGeoTiff($)
    20702070{
    2071     my ($exifTool) = @_;
     2071    my $exifTool = shift;
    20722072    my $dirData = $exifTool->GetValue('GeoTiffDirectory', 'ValueConv') or return;
    20732073    my $doubleData = $exifTool->GetValue('GeoTiffDoubleParams', 'ValueConv');
    20742074    my $asciiData = $exifTool->GetValue('GeoTiffAsciiParams', 'ValueConv');
    20752075    my $verbose = $exifTool->Options('Verbose');
    2076     my @double;
    20772076
    20782077    # restore or original EXIF byte order setting
    2079     my $byteOrder = $exifTool->{EXIF_BYTE_ORDER};
    2080     $byteOrder and SetByteOrder($byteOrder);
    20812078    if (length($$dirData) >= 8 and
    20822079        length($$dirData) >= 8 * (Get16u($dirData,6) + 1))
     
    20862083        my $minorRev   = Get16u($dirData,4);
    20872084        my $numEntries = Get16u($dirData,6);
    2088    
     2085
    20892086        if ($verbose) {
    20902087            $exifTool->{INDENT} .= '| ';
     
    20922089        }
    20932090        # generate version number tag (not a real GeoTiff tag)
    2094         my $tagTable = Image::ExifTool::GetTagTable("Image::ExifTool::GeoTiff::Main");
     2091        my $tagTable = GetTagTable("Image::ExifTool::GeoTiff::Main");
    20952092        my $tagInfo = $exifTool->GetTagInfo($tagTable, 1);
    20962093        $tagInfo and $exifTool->FoundTag($tagInfo,"$version.$revision.$minorRev");
    2097    
     2094
    20982095        my $i;
    20992096        for ($i=0; $i<$numEntries; ++$i) {
     
    21702167=head1 AUTHOR
    21712168
    2172 Copyright 2003-2007, Phil Harvey (phil at owl.phy.queensu.ca)
     2169Copyright 2003-2011, Phil Harvey (phil at owl.phy.queensu.ca)
    21732170
    21742171This library is free software; you can redistribute it and/or modify it
Note: See TracChangeset for help on using the changeset viewer.