Opened 12 years ago

Last modified 12 years ago

#1452 closed defect (fixed)

MrSID Files don't report statistics by default

Reported by: warmerdam Owned by: warmerdam
Priority: highest Milestone: 1.4.1
Component: GDAL_Raster Version: 1.4.0
Severity: normal Keywords:
Cc:

Description (last modified by hobu)

MrSID files ought to report statistics if bApprox is TRUE in GetStatistics()
even if bForce is FALSE since they can be computed to cheaply from the top
overview level.

Request originally from Peng Gao.

Change History (2)

comment:1 Changed 12 years ago by warmerdam

I have commited a change to set bForce to TRUE if bApproxOK is TRUE in
MrSIDRasterBand::GetStatistics() before passing the request on to 
the lower level.  Thus as long as approxok is true, statistics will always
be returned even if force was false.  I have confirmed that statistics
are generated from the top overview level known to GDAL and that this is
very fast even for large datasets. 

The change is r10661 in trunk and r10662 in branches/1.4.  The fix should
appear in 1.4.1. 

comment:3 Changed 12 years ago by hobu

Description: modified (diff)
Milestone: 1.4.1
Note: See TracTickets for help on using tickets.