GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
GIS Library - Modify window (i.e. GRASS region) More...
Go to the source code of this file.
Functions | |
int | G_put_window (const struct Cell_head *window) |
Writes the region (window) More... | |
int | G_put_element_window (const struct Cell_head *window, const char *dir, const char *name) |
Write the region. More... | |
GIS Library - Modify window (i.e. GRASS region)
(C) 2001-2009 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file put_window.c.
int G_put_element_window | ( | const struct Cell_head * | window, |
const char * | dir, | ||
const char * | name | ||
) |
Write the region.
Writes the region file (WIND) in the user's current mapset from region.
Warning: Since this routine actually changes the region, it should only be called by modules which the user knows will change the region. It is probably fair to say that only the g.region
should call this routine.
[in,out] | window | pointer to Cell_head |
dir | directory name | |
name | file name |
Definition at line 74 of file put_window.c.
Referenced by G_make_mapset().
int G_put_window | ( | const struct Cell_head * | window | ) |
Writes the region (window)
Writes the region file (WIND) in the user's current mapset or when environmental variable WIND_OVERRIDE
is set, it writes the region to file specified by WIND_OVERRIDE
variable.
When WIND_OVERRIDE
is set the current process and child processes are affected. Otherwise the whole GRASS session is affected.
WIND_OVERRIDE
is not set, this routine actually changes the region. So in this case it should only be called by modules which the user knows will change the region. It is probably fair to say that only the g.region
should call this routine unless WIND_OVERRIDE
is set.This function does not adjust the window
before setting the region so you should call G_adjust_Cell_head() before calling this function.
[in,out] | window | pointer to Cell_head |
Definition at line 46 of file put_window.c.