14 #include <grass/gis.h> 15 #include <grass/raster.h> 16 #include <grass/glocale.h> 21 static void update_window_mappings(
void);
22 static void check_write_window(
void);
48 G_warning(
_(
"Rast_set_window() called while window split"));
58 update_window_mappings();
65 G_debug(4,
"Rast_unset_window()");
105 update_window_mappings();
108 static void update_window_mappings(
void)
131 G_fatal_error(
_(
"Rast_set_read_window(): projection/zone differs from that of " 132 "currently open raster maps"));
158 G_fatal_error(
_(
"Input window changed while maps are open for read. Map name <%s>"), fcb->
name);
165 static void check_write_window(
void)
174 G_fatal_error(
_(
"Output window changed while maps are open for write. Map name <%s>"), fcb->
name);
int Rast__check_for_auto_masking(void)
Checks for auto masking.
#define OPEN_NEW_COMPRESSED
struct Cell_head rd_window
void Rast__init_window(void)
2D/3D raster map header (used also for region)
void Rast_close(int fd)
Close a raster map.
void G_adjust_Cell_head(struct Cell_head *cellhd, int row_flag, int col_flag)
Adjust cell header.
void Rast_set_output_window(struct Cell_head *window)
Establishes 'window' as the current working window for output.
void Rast_unset_window(void)
Unset current window.
void G__init_window(void)
Initialize window (region).
int G_is_initialized(int *p)
void G_initialize_done(int *p)
#define OPEN_NEW_UNCOMPRESSED
void G_set_window(struct Cell_head *window)
Establishes window as the current working window (region).
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
struct Cell_head wr_window
void Rast_set_input_window(struct Cell_head *window)
Establishes 'window' as the current working window for input.
int G_debug(int level, const char *msg,...)
Print debugging message.
int zone
Projection zone (UTM)
struct fileinfo * fileinfo
void Rast_set_window(struct Cell_head *window)
Establishes 'window' as the current working window.
void G_warning(const char *msg,...)
Print a warning message to stderr.