[GRASSLIST:10365] Re: error writing cell file during copy

Glynn Clements glynn at gclements.plus.com
Fri Feb 17 08:36:15 EST 2006


Rochelle MIranda wrote:

>  I was looking into the source code when i came across the following module.
>  d.rast.edit  
>  In file mk_new_layer.c  
> What does the following if  expression mean:
> 
> 
>         if ( read (tmpfd, rast, real_ncols * cellsize) != (real_ncols * cellsize))
>             error(1,"error writing cell file during copy");
> 
> 
>  And when can such error occur what are its causes?.

The error will occur if the file wasn't written correctly, or has been
truncated or corrupted in the meantime.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list