Opened 16 years ago

Closed 15 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 16 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by Even Rouault, 16 years ago

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).

by Even Rouault, 16 years ago

comment:2 by Even Rouault, 15 years ago

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.