46 for (i = 0; i < ncols; i++) {
62 G_warning(
_(
"EmbedGivenNulls: wrong data type"));
112 G_warning(
_(
"Rast_set_null_value: wrong data type!"));
138 static const unsigned char null_bits[4] = {0xFF, 0xFF, 0xFF, 0xFF};
153 static const unsigned char null_bits[8] = {0xFF, 0xFF, 0xFF, 0xFF,
154 0xFF, 0xFF, 0xFF, 0xFF};
187 G_warning(
"Rast_is_null_value: wrong data type!");
203#ifndef Rast_is_c_null_value
236#ifndef Rast_is_f_null_value
255#ifndef Rast_is_d_null_value
277 EmbedGivenNulls(
rast, null_row, data_type, ncols);
341 "Rast__check_null_bit: index %d out of range (size = %d).",
bit_num,
349 return ((flags[
ind] & ((
unsigned char)0x80 >> offset)) != 0);
370 int col,
int n,
int ncols)
377 if (
col == 0 && n == ncols) {
385 for (i = 0; i < size; i++) {
393 else if (
count < ncols) {
430 for (i = 0; i < size; i++) {
457 const unsigned char *v;
466 for (i = 0; i < size; i++) {
498 for (i = 0; i < size; i++) {
499 if ((i + 1) * 8 <= cols) {
500 *v = (
unsigned char)255;
503 *v = (
unsigned char)255 << ((i + 1) * 8 - cols);
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
int Rast__null_bitstream_size(int)
Determines null bitstream size.
#define Rast_is_f_null_value(fcellVal)
size_t Rast_cell_size(RASTER_MAP_TYPE)
Returns size of a raster cell in bytes.
#define Rast_is_d_null_value(dcellVal)
#define Rast_is_c_null_value(cellVal)
void Rast_set_d_null_value(DCELL *dcellVals, int numVals)
To set a number of DCELL raster values to NULL.
int G__set_flags_from_01_random(const char *zero_ones, unsigned char *flags, int col, int n, int ncols)
Given array of 0/1 of length n starting from column.
void Rast_set_null_value(void *buf, int numVals, RASTER_MAP_TYPE data_type)
To set one or more raster values to null.
int Rast__check_null_bit(const unsigned char *flags, int bit_num, int n)
Check NULL.
void Rast__init_null_bits(unsigned char *flags, int cols)
?
void Rast__convert_flags_01(char *zero_ones, const unsigned char *flags, int n)
?
void Rast_insert_null_values(void *rast, char *null_row, int ncols, RASTER_MAP_TYPE data_type)
To check if a CELL raster value is set to NULL.
int Rast_is_null_value(const void *rast, RASTER_MAP_TYPE data_type)
To check if a raster value is set to NULL.
void Rast_set_c_null_value(CELL *cellVals, int numVals)
To set a number of CELL raster values to NULL.
void Rast_set_f_null_value(FCELL *fcellVals, int numVals)
To set a number of FCELL raster values to NULL.
void Rast__set_null_value(void *rast, int numVals, int null_is_zero, RASTER_MAP_TYPE data_type)
To set one or more raster values to null.
void Rast_insert_f_null_values(FCELL *fcellVal, char *null_row, int ncols)
To insert null values into an floating-point raster map (FCELL)
void Rast__convert_01_flags(const char *zero_ones, unsigned char *flags, int n)
?
void Rast_insert_d_null_values(DCELL *dcellVal, char *null_row, int ncols)
To insert null values into an floating-point raster map (FCELL)
void Rast_insert_c_null_values(CELL *cellVal, char *null_row, int ncols)
To insert null values into an integer raster map (CELL)