Opened 12 years ago

Closed 10 years ago

#2156 closed enhancement (fixed)

SetStatistics does not work for TIFF files

Reported by: rsoconnor Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description

SetStatistics? does not work for TIFF files.

Normally I open up a dataset and call ComputeStatistics?() and the statistics get saved in the PAM file. This does not work for TIFF files though.

Attachments (1)

gdal_svn_trunk_gtiff_statistics.patch (3.0 KB) - added by Even Rouault 12 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 12 years ago by Even Rouault

I'm attaching a patch that enables to use PAM with GeoTIFF. A few tests show that it doesn't seem to break things. However, I'm a bit shy about commiting it. I think it should also take into account the PROFILE of the TIFF file, in addition to the access status (see #1173).

Changed 12 years ago by Even Rouault

comment:2 Changed 10 years ago by Even Rouault

Resolution: fixed
Status: newclosed

Was implemented indirectly in 1.6.0 through better PAM support in the TIFF driver. See #2448 for the related commits.

I've also jsut added an explicit test for statistics storing and retrieval in r17437.

Note: See TracTickets for help on using tickets.