[gdal-dev] corrupt block on AIG dataset

Even Rouault even.rouault at mines-paris.org
Thu Jul 23 18:40:46 EDT 2009


Should be fixed by r17435 now. Trunk only issue.

Thanks for reporting Matt

Le Thursday 23 July 2009 23:19:06 Gregory, Matthew, vous avez écrit :
> Hi all,
>
> When I do a simple RasterIO read over various ArcInfo grids (using the
> AIG driver), I am getting sporadic "Corrupt block" errors from line 636
> in gridlib.c (r17432) on grids that I think should be fine.  This
> relevant chunk of code in gridlib.c is this:
>
> -------------------------
>
> /* The 4 is to be safe... In theory for a very small block (2x2 or
> less),
>    and nMinSize < 4, nDataSize could be smaller... */
> if (nDataSize < 2 + 4)
> {
>   CPLError( CE_Failure, CPLE_AppDefined, "Corrupt block");
>   CPLFree( pabyRaw );
>   return CE_Failure;
> }
>
> -------------------------
>
> I'm erroring out with nDataSize of 4.  I won't even pretend to
> understand the intracacies of the driver, but I'm getting this error on
> many grids, all of which I believe are fine.  I will file a ticket and
> post sample data if desired.
>
> thanks, matt
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev




More information about the gdal-dev mailing list