24 #include <grass/gis.h> 25 #include <grass/raster.h> 26 #include <grass/glocale.h> 32 static int initialized = 0;
33 static int init(
void);
61 G_fatal_error(
_(
"Raster library not initialized. Programmer forgot to call Rast_init()."));
80 char *zlib, *nulls, *cname;
101 cname =
getenv(
"GRASS_COMPRESSOR");
107 if (cname && *cname) {
112 G_warning(
_(
"Unknown compression method <%s>, using default %s"),
116 G_warning(
_(
"No compression is not supported for GRASS raster maps, using default %s"),
123 G_warning(
_(
"This GRASS version does not support %s compression, using default %s"),
128 G_debug(1,
"Using %s compression",
132 nulls =
getenv(
"GRASS_COMPRESS_NULLS");
int G_default_compressor(void)
int Rast__check_for_auto_masking(void)
Checks for auto masking.
void G_add_error_handler(void(*func)(void *), void *closure)
Add new error handler.
void Rast__init_window(void)
void Rast_init(void)
Initialize GRASS GIS engine.
char * G_compressor_name(int number)
int G_is_initialized(int *p)
void G_initialize_done(int *p)
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
void Rast__unopen_all(void)
Unopen all raster maps.
int G_debug(int level, const char *msg,...)
Print debugging message.
void Rast__error_handler(void *p)
struct fileinfo * fileinfo
int G_check_compressor(int number)
void Rast__check_init(void)
Checks to see if GIS engine is initialized.
int G_compressor_number(char *name)
void Rast_init_gdal(void)
Initialization.
void G_warning(const char *msg,...)
Print a warning message to stderr.