GDALRasterBand::ReadBlock only reads first block
|Reported by:||Owned by:||dron|
If the internal function GDALRasterBand::InitBlock has not been previously called then the ReadBlock function only returns the first block no matter what co-ordinates are requested. When tested with the geotiff driver, this internal function was only being called when cache flushes were requested. This may be the case on other drivers as well. So the examples of the usage of read block to iterate through a dataset will not work. The work around is to call FlushBlock on any valid block in the band, whether on it is has been written to. I cannot see any references to this or the need to call any other init function in the docs.
Note: See TracTickets for help on using tickets.