[GRASS-dev] lib fn to set all of a raster row to NULL?

Hamish hamish_b at yahoo.com
Wed Nov 13 15:29:08 PST 2013


Hi,

is there a lib function somewhere like Rast_get_row() which populates
a row buffer, but instead of reading from a file just (re)sets all
values in the row array to NULL?

something like:
  Rast_fill_row_with_nulls(void *buf, RASTER_MAP_TYPE data_type)

It's easy enough to write small for() loop to do it, but seems like the
sort of thing a lib fn might help with, so might already exist somewhere.


?

note this is for working with the cell array values, not
writing an all-null row on the disk.



thanks,
Hamish



More information about the grass-dev mailing list