|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-5f4f7ad06c
|
Raster Library - Window mapping functions. More...

Go to the source code of this file.
Macros | |
| #define | alloc_index(n) (COLUMN_MAPPING *)G_malloc((n) * sizeof(COLUMN_MAPPING)) |
Functions | |
| void | Rast__create_window_mapping (int fd) |
| Create window mapping. | |
| int | Rast_row_repeat_nomask (int fd, int row) |
| Loops rows until mismatch?. | |
Raster Library - Window mapping functions.
(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 raster/window_map.c.
| #define alloc_index | ( | n | ) | (COLUMN_MAPPING *)G_malloc((n) * sizeof(COLUMN_MAPPING)) |
Definition at line 20 of file raster/window_map.c.
Create window mapping.
Creates mapping from cell header into window. The boundaries and resolution of the two spaces do not have to be the same or aligned in any way.
| fd | file descriptor |
Definition at line 31 of file raster/window_map.c.
References alloc_index, fileinfo::C1, fileinfo::C2, fileinfo::cellhd, R__::fileinfo, G_debug(), G_free(), OPEN_OLD, PROJECTION_LL, R__::rd_window, and x.
Referenced by Rast__open_old().
Loops rows until mismatch?.
This routine works fine if the mask is not set. It may give incorrect results with a mask, since the mask row may have a different repeat value. The issue can be fixed by doing it for the mask as well and using the smaller value.
| fd | file descriptor |
| row | starting row |
Definition at line 131 of file raster/window_map.c.
References count, R__::fileinfo, and R__::rd_window.