put_window.c File Reference

#include <stdlib.h>
#include <grass/gis.h>
Include dependency graph for put_window.c:

Go to the source code of this file.

Functions

int G_put_window (const struct Cell_head *window)
 write the database region
int G__put_window (const struct Cell_head *window, char *dir, char *name)

Function Documentation

int G__put_window ( const struct Cell_head *  window,
char *  dir,
char *  name 
)

Definition at line 40 of file put_window.c.

References G__write_Cell_head3(), and G_fopen_new().

Referenced by G__make_location(), G__make_mapset(), and G_put_window().

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.

Parameters:
region 
Returns:
int

Definition at line 32 of file put_window.c.

References G__put_window().


Generated on Sat Oct 24 03:24:58 2009 for GRASS Programmer's Manual by  doxygen 1.6.1