20 #include "gis_local_proto.h" 52 *window = st->dbwindow;
57 regvar =
getenv(
"GRASS_REGION");
65 char *wind =
getenv(
"WIND_OVERRIDE");
72 *window = st->dbwindow;
109 const char *
element,
const char *
name,
const char *mapset)
119 element, name, mapset);
123 G_fatal_error(
_(
"Region file %s/%s/%s is empty"), mapset, element, name);
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_get_window(struct Cell_head *window)
Get the current region.
2D/3D raster map header (used also for region)
char ** G_tokenize(const char *, const char *)
Tokenize string.
void G_unset_window()
Unset current region.
void G_initialize_done(int *)
void G__read_Cell_head_array(char **, struct Cell_head *, int)
Read window from NULL terminated array of strings (for internal use only)
void G_fseek(FILE *, off_t, int)
Change the file position of the stream.
FILE * G_fopen_old(const char *, const char *, const char *)
Open a database file for reading.
void G_get_default_window(struct Cell_head *window)
Get the default region.
off_t G_ftell(FILE *)
Get the current file position of the stream.
int G_is_initialized(int *)
const char * G_mapset(void)
Get current mapset name.
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void G_free_tokens(char **)
Free memory allocated to tokens.
void G__read_Cell_head(FILE *, struct Cell_head *, int)
Read cell header (for internal use only)
void G_get_element_window(struct Cell_head *window, const char *element, const char *name, const char *mapset)
Get region for selected element (raster, vector, window, etc.)