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>"),
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
char * G_fully_qualified_name(const char *, const char *)
Get fully qualified element name.
void Rast_quant_round(struct Quant *)
Sets the quant rules to perform simple rounding on floats.
int Rast_read_fp_range(const char *, const char *, struct FPRange *)
Read floating-point range.
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.
void Rast_get_fp_range_min_max(const struct FPRange *, DCELL *, DCELL *)
Get minimum and maximum value from fp range.
int Rast__quant_import(const char *, const char *, struct Quant *)
Reads quantization rules (internal use only)
RASTER_MAP_TYPE Rast_map_type(const char *, const char *)
Determine raster data type.
void Rast_quant_add_rule(struct Quant *, DCELL, DCELL, CELL, CELL)
Adds a new rule to the set of quantization rules.
void Rast_quant_init(struct Quant *)
Initialize the structure.
#define Rast_is_d_null_value(dcellVal)
int Rast__quant_export(const char *, const char *, const struct Quant *)
Writes the quantization rules (internal use only)
void Rast_quant_truncate(struct Quant *)
Sets the quant rules to perform simple truncation on floats.
void Rast_round_fp_map(const char *name, const char *mapset)
Writes the quant rules.
void Rast_truncate_fp_map(const char *name, const char *mapset)
Writes the quant rules.
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_quantize_fp_map(const char *name, const char *mapset, CELL min, CELL max)
Write quant rules (f_quant) for floating-point raster map.
void Rast_write_quant(const char *name, const char *mapset, const struct Quant *quant)
Writes the quant rule table for the raster map.
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....