Ticket #2156 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

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

gdal_svn_trunk_gtiff_statistics.patch Download (3.0 KB) - added by rouault 5 years ago.

Change History

Changed 5 years ago by 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 5 years ago by rouault

Changed 4 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed

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.