GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <stdlib.h>
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
int | G_put_window (const struct Cell_head *window) |
write the database region More... | |
int | G__put_window (const struct Cell_head *window, char *dir, char *name) |
int G__put_window | ( | const struct Cell_head * | window, |
char * | dir, | ||
char * | name | ||
) |
Definition at line 40 of file put_window.c.
References fclose(), fd, G__write_Cell_head3(), and G_fopen_new().
Referenced by G__make_location(), G__make_mapset(), G_put_window(), main(), and make_location().
int G_put_window | ( | const struct Cell_head * | window | ) |
write the database region
Writes the database region file (WIND) in the user's current mapset from region. Returns 1 if the region is written ok. Returns -1 if not (no diagnostic message is printed). Warning. Since this routine actually changes the database region, it should only be called by modules which the user knows will change the region. It is probably fair to say that under GRASS 3.0 only the g.region, and d.zoom modules should call this routine.
region |
Definition at line 32 of file put_window.c.
References G__put_window(), and getenv().
Referenced by make_mapset().