[gdal-dev] RasterIO(GF_Write,...) has no effect on copied dataset

Tim Keitt tkeitt at gmail.com
Tue May 18 12:31:15 EDT 2010


I have some GDAL code that does:

open input dataset
create copy to output dataset
close input dataset
get raster band from output
call RasterIO(GF_Read,...) on band
update buffer in place
call RasterIO(GF_Write,...) on band
close output dataset
exit

The program runs, but the output dataset contains exactly the same
values as the input dataset. The RasterIO(GF_Write,...) call seems to
have no effect. I tried closing and reopening the output after the
create copy call, but same result. Access of the copy is GA_Update.

THK



-- 
Timothy H. Keitt
http://www.keittlab.org/


More information about the gdal-dev mailing list