Access window out of range in RasterIO().

Topics: General Topics
Jun 1, 2007 at 5:59 PM
Hi there,
Basiccaly i've problem to display Raster Layer, it came a very large coordinate and big zoom, so i cant display it correctly. to fix my problem, I've chaged GDALRasterLayer, to fix displaying raster layer.

from
/band.ReadRaster(x1, y1, x1width, y1height, buffer, size.Width, size.Height, (int)GT.HorizontalPixelResolution, (int)GT.VerticalPixelResolution);
to
band.ReadRaster(x1, y1, x1width, y1height, buffer, size.Width, size.Height, 0, 0);

but it cames :
Access window out of range in RasterIO(). Requested
(0,302) of size 454x302 on raster of 454x302.

What should I do ?

Thanks