42 if (*((
const CELL *)v1) > *((
const CELL *)v2))
44 else if (*((
const CELL *)v1) == *((
const CELL *)v2))
49 if (*((
const FCELL *)v1) > *((
const FCELL *)v2))
51 else if (*((
const FCELL *)v1) == *((
const FCELL *)v2))
56 if (*((
const DCELL *)v1) > *((
const DCELL *)v2))
58 else if (*((
const DCELL *)v1) == *((
const DCELL *)v2))
107 *((
CELL *) rast) = cval;
143 *((
FCELL *) rast) = fval;
180 *((
DCELL *) rast) = dval;
212 return *((
const CELL *)rast);
248 return *((
const FCELL *)rast);
285 return *((
const DCELL *)rast);
void Rast_set_f_value(void *rast, FCELL fval, RASTER_MAP_TYPE data_type)
Places a FCELL raster value.
void Rast_set_null_value(void *, int, RASTER_MAP_TYPE)
To set one or more raster values to null.
void Rast_set_c_null_value(CELL *, int)
To set a number of CELL raster values to NULL.
#define Rast_is_d_null_value(dcellVal)
void Rast_set_d_value(void *rast, DCELL dval, RASTER_MAP_TYPE data_type)
Places a DCELL raster value.
int Rast_raster_cmp(const void *v1, const void *v2, RASTER_MAP_TYPE data_type)
Compares raster values.
#define Rast_is_f_null_value(fcellVal)
size_t Rast_cell_size(RASTER_MAP_TYPE)
Returns size of a raster cell in bytes.
void Rast_set_f_null_value(FCELL *, int)
To set a number of FCELL raster values to NULL.
void Rast_raster_cpy(void *v1, const void *v2, int n, RASTER_MAP_TYPE data_type)
Copies raster values.
CELL Rast_get_c_value(const void *rast, RASTER_MAP_TYPE data_type)
Retrieves the value of give type from pointer p.
void Rast_set_c_value(void *rast, CELL cval, RASTER_MAP_TYPE data_type)
Places a CELL raster value.
FCELL Rast_get_f_value(const void *rast, RASTER_MAP_TYPE data_type)
Retrieves the value of given raster type from pointer p (FCELL)
#define Rast_is_c_null_value(cellVal)
DCELL Rast_get_d_value(const void *rast, RASTER_MAP_TYPE data_type)
Retrieves the value of given type from pointer p (DCELL)
void Rast_set_d_null_value(DCELL *, int)
To set a number of DCELL raster values to NULL.
int Rast_is_null_value(const void *, RASTER_MAP_TYPE)
To check if a raster value is set to NULL.