[gdal-dev] Reading ArcInfo binary grids with the R rgdalpackage fails with "GDAL Error 3: Attempt to read past EOF in..../arc.dir"
Even Rouault
even.rouault at mines-paris.org
Wed Jul 22 14:24:51 EDT 2009
Le Wednesday 22 July 2009 20:17:43 Gregory, Matthew, vous avez écrit :
>
> > For people affected by the issue, not being able to build
> > GDAL from source and not interested in the raster attribute
> > table, they can just rename the 'info'
> > directory, so it won't be read at all and won't trigger the error.
> >
> > See http://trac.osgeo.org/gdal/ticket/3031
>
> Um, this makes me really nervous to advocate renaming the INFO
> directory, but maybe I'm overreacting.
This is just a workaround for people stuck with a version affected by the
issue.
> I think your recent fix of not
> calling ReadRAT() in AIGDataset::Open() eliminates this workaround,
> correct?
The workaround is still there, but yeah, the latest change in trunk makes it
more or less useless.
> Just as long as the user doesn't call GetDefaultRAT()?
There's no point trying to read the RAT until it is really needed. And the
entry point for it is GetDefaultRAT(), hence the late opening of the RAT
through the AVC driver in this method.
>
> matt
More information about the gdal-dev
mailing list