151 const struct Quant *quant)
153 CELL cell_min, cell_max;
157 G_warning(
_(
"Unable to write quant rules: raster map <%s> is integer"),
166 G_fatal_error(
_(
"Unable to write quant rules for raster map <%s>"), name);
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void Rast_round_fp_map(const char *name, const char *mapset)
Writes the quant rules.
void Rast_quantize_fp_map(const char *name, const char *mapset, CELL min, CELL max)
Write quant rules (f_quant) for floating-point raster map.
#define Rast_is_d_null_value(dcellVal)
void Rast_quantize_fp_map_range(const char *name, const char *mapset, DCELL d_min, DCELL d_max, CELL min, CELL max)
Write quant rules (f_quant) for floating-point raster map.
void Rast_quant_init(struct Quant *)
Initialize the structure.
void Rast_truncate_fp_map(const char *name, const char *mapset)
Writes the quant rules.
void Rast_get_fp_range_min_max(const struct FPRange *, DCELL *, DCELL *)
Get minimum and maximum value from fp range.
char * G_fully_qualified_name(const char *, const char *)
Get fully qualified element name.
int Rast__quant_import(const char *, const char *, struct Quant *)
Reads quantization rules (internal use only)
int Rast__quant_export(const char *, const char *, const struct Quant *)
Writes the quantization rules (internal use only)
int Rast_read_quant(const char *name, const char *mapset, struct Quant *quant)
Reads quantization rules for name in mapset and stores them in the quantization structure. If the map is in another mapset, first checks for quant2 table for this map in current mapset.
int Rast_quant_get_limits(const struct Quant *, DCELL *, DCELL *, CELL *, CELL *)
Returns the minimum and maximum cell and dcell values of all the ranges defined.
int Rast_read_fp_range(const char *, const char *, struct FPRange *)
Read floating-point range.
void Rast_write_quant(const char *name, const char *mapset, const struct Quant *quant)
Writes the quant rule table for the raster map.
void Rast_quant_add_rule(struct Quant *, DCELL, DCELL, CELL, CELL)
Adds a new rule to the set of quantization rules.
void G_warning(const char *,...) __attribute__((format(printf
void Rast_quant_round(struct Quant *)
Sets the quant rules to perform simple rounding on floats.
void Rast_quant_truncate(struct Quant *)
Sets the quant rules to perform simple truncation on floats.
RASTER_MAP_TYPE Rast_map_type(const char *, const char *)
Determine raster data type.