This project has moved and is read-only. For the latest updates, please go here.

RASTERIO() Problem

Topics: Data Access
Jun 15, 2007 at 1:15 PM
Hi there,
I'm using this to initialize my raster layer :
SharpMap.Layers.GdalRasterLayer layJDTB = new SharpMap.Layers.GdalRasterLayer("ecw", "C:\\maps\\maps.jpg");
layJDTB.SRID = 4326;

and come with a message :
Access window out of range in RasterIO(). Requested
(0,604) of size 907x604 on raster of 907x604.

and I think there's a problem with :
Line 232: band.ReadRaster(x1, y1, x1width, y1height, buffer, size.Width, size.Height, 0, 0);

what should I do ?