[GRASSLIST:8041] Re: error reading large rasters in 5.4/6.0
Markus Neteler
neteler at itc.it
Wed Aug 24 04:49:25 EDT 2005
On Tue, Aug 23, 2005 at 10:25:05PM +0100, Glynn Clements wrote:
> Andrew Danner wrote:
>
...
> > I think the problem is a bug in writing rasters, not reading them. When
> > creating a new raster, it writes a vector of row offsets to the fcell
> > file in the function G__write_row_ptrs. It attempts to guess the size of
> > the file offsets.
> >
> > int nbytes = sizeof(off_t);
> > ...
> > if (nbytes > 4 && fcb->row_ptr[nrows] <= 0xffffffff)
> > nbytes = 4;
> > ...
> > len = (nrows + 1) * nbytes + 1;
> > b = buf = G_malloc(len);
> >
...
> > Should I submit a bug report?
>
> No need; I've comitted the fix to CVS.
>
...
I have fixed that in the 6.0-release branch as well
for a potential 6.0.2 (even if LFS is not well developed in 6.0.x).
Markus
More information about the grass-user
mailing list