[GRASS5] r.in.gdal updates?

Eric G. Miller egm2 at jps.net
Thu Mar 13 10:22:46 EST 2003


On Thu, Mar 13, 2003 at 01:49:46PM +0100, Markus Neteler wrote:

> Outstanding issue:
> The CELL compression - I don't know how to apply that suggestion
> (Eric ?).

 ***********************************************************
 * G_set_cell_format(n)
 *
 * sets the format for subsequent opens on new integer cell files
 * (uncompressed and random only)
 * warning - subsequent put_row calls will only write n+1 bytes
 *           per cell. If the data requires more, the cell file
 *           will be written incorrectly (but with n+1 bytes per cell)
 *
 ***********************************************************

Hmm, apparently this hint is ignored for compressed CELL files (the
default).  So, for it to work:

G_set_cell_format(nbytes-1);
G_open_cell_new_uncompressed (name);

-- 
echo ">gra.fcw at 2ztr< eryyvZ .T pveR" | rot13 | reverse




More information about the grass-dev mailing list