6
#include <grass/raster.h>
8
#include "raster3d_intern.h"
10
/*---------------------------------------------------------------------------*/
12
int Rast3d_is_null_value_num(const void *n, int type)
14
if (type == FCELL_TYPE)
15
return Rast_is_f_null_value(n);
17
return Rast_is_d_null_value(n);
20
/*---------------------------------------------------------------------------*/
26
* Fills the vector pointed to by <em>c</em> with <em>nofElts</em> NULL-values
35
void Rast3d_set_null_value(void *c, int nofElts, int type)
37
if (type == FCELL_TYPE) {
38
Rast_set_f_null_value((float *)c, nofElts);
42
Rast_set_d_null_value((double *)c, nofElts);