Opened 16 years ago

Closed 16 years ago

#2109 closed defect (duplicate)

[PATCH] GDALRasterBand::ComputeStatistics() does not use arbitrary overviews

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

Description

GDALRasterBand::ComputeStatistics() does note use arbitrary overviews when computing approximate statistics and hence does not have any benefit of reduced datasets. The whole dataset will be read even if it is not required (the block sampling and AdviseRead() help a bit, but still).

The attached patch adds ability to request the subsampled overview of size ~2500 pixels and compute statistics on that reduced array.

Frank, please, take a look at the code as we talked about previously on IRC. If your are fine with this, I can add it both in trunk and in 1.5 branch. I think it can safely wait until the next maintenance release of 1.5.

Best regards, Andrey

Attachments (1)

arbitrary.diff (11.4 KB ) - added by dron 16 years ago.

Download all attachments as: .zip

Change History (2)

by dron, 16 years ago

Attachment: arbitrary.diff added

comment:1 by dron, 16 years ago

Resolution: duplicate
Status: newclosed

This is also duplicate of 2108. Sorry.

Note: See TracTickets for help on using tickets.