|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
#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"
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. | |
| 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. | |
| 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.
| window | |
| windowName |
Definition at line 132 of file windowio.c.
References access, RASTER3D_Region::bottom, RASTER3D_Region::cols, RASTER3D_Region::depths, RASTER3D_Region::east, RASTER3D_Region::ew_res, G_free_key_value(), G_get_window(), G_read_key_value_file(), G_warning(), GPATH_MAX, RASTER3D_Region::north, RASTER3D_Region::ns_res, NULL, RASTER3D_Region::proj, R_OK, Rast3d_error(), RASTER3D_Region::rows, RASTER3D_Region::south, RASTER3D_Region::tb_res, RASTER3D_Region::top, RASTER3D_Region::west, and RASTER3D_Region::zone.
Referenced by GVL_init_region(), Rast3d_init_defaults(), and Rast3d_read_region_map().
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.
| window | |
| windowName |
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.
Definition at line 263 of file windowio.c.
References Rast3d_set_window_params().