[GRASS-dev] raster row alloc?

Hamish hamish_nospam at yahoo.com
Thu Jun 1 00:14:31 EDT 2006


Hi,

I notice G_allocate_raster_buf() allocates G_window_cols() + 1.

What's the +1 for? Is it just for good luck, is there a null terminator
which inidcates EOL? or something else?


I'd like to use  G_set_null_value(array, nrows*ncols, map_type);
to fill some nrows with NULL in one go instead of a loop over the number
of rows, and perhaps G_raster_cpy() to copy a few lines over at a time.

nrows*(ncols+1) ?


???
Hamish




More information about the grass-dev mailing list