GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
windowio.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <grass/gis.h>
#include "raster3d_intern.h"
Include dependency graph for windowio.c:

Go to the source code of this file.

Functions

int Rast3d_read_window (RASTER3D_Region *window, const char *windowName)
 Reads window from the file specified by windowName. The name is converted by the rules defined in window defaults. A NULL pointer indicates the WIND3 file in the current mapset. More...
 
void Rast3d_use_window_params (void)
 Writes window to the file specified by windowName. The name is converted by the rules defined in window defaults. A NULL pointer indicates the WIND3 file in the current mapset. More...
 

Function Documentation

◆ Rast3d_read_window()

int Rast3d_read_window ( RASTER3D_Region window,
const char *  windowName 
)

Reads window from the file specified by windowName. The name is converted by the rules defined in window defaults. A NULL pointer indicates the WIND3 file in the current mapset.

Parameters
window
windowName
Returns
1 ... if successful 0 ... otherwise.

Definition at line 139 of file windowio.c.

Referenced by GVL_init_region().

◆ Rast3d_use_window_params()

void Rast3d_use_window_params ( void  )

Writes window to the file specified by windowName. The name is converted by the rules defined in window defaults. A NULL pointer indicates the WIND3 file in the current mapset.

Parameters
window
windowName
Returns
1 ... if successful 0 ... otherwise.

Allows the window to be set at run-time via the region3 command line argument. This function has to be called before G_parser (). See also window defaults.

Returns
void

Definition at line 276 of file windowio.c.

References Rast3d_set_window_params().