[gdal-dev] GDAL : Access window out of range in RasterIO and blank buffer in warp for same block extents

Johan de Braak johan.de.braak at eleaf.com
Mon Feb 27 00:20:46 PST 2017


asmita wrote
> I tried to investigate the read with simple read, however I got this error
> :
> Access window out of range in RasterIO().  Requested
> (0,24104) of size 430x450 on raster of 11783x14544.
> (...)
> Anyways, the point is that how should I proceed with to get successful
> read of the intermediate file created from two or more tiffs to create a
> mosaic?

The point of the error message is that you are trying to access more pixels
than are available in your raster. What helps, in general, is to think of
what the extent of the project you are working on is, and tell gdal (using
-te or -projwin) what extent that is. If your input rasters have different
extents / projections, use gdalwarp to fix this, before continuing with
mosaic creation.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-Access-window-out-of-range-in-RasterIO-and-blank-buffer-in-warp-for-same-block-extents-tp5307794p5309599.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list