GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
GIS Library - CELL header adjustment. More...
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
char * | G_adjust_Cell_head (struct Cell_head *cellhd, int row_flag, int col_flag) |
Adjust cell header. More... | |
char * | G_adjust_Cell_head3 (struct Cell_head *cellhd, int row_flag, int col_flag, int depth_flag) |
Adjust cell header for 3D values. More... | |
GIS Library - CELL header adjustment.
(C) 2001-2008 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 adj_cellhd.c.
Adjust cell header.
This function fills in missing parts of the input cell header (or region). It also makes projection-specific adjustments. The cellhd structure must have its north, south, east, west, and proj fields set.
If row_flag is true, then the north-south resolution is computed from the number of rows in the cellhd structure. Otherwise the number of rows is computed from the north-south resolution in the structure, similarly for col_flag and the number of columns and the east-west resolution.
Note: 3D values are not adjusted.
[in,out] | cellhd | |
[in] | row_flag | |
[in] | col_flag |
Definition at line 43 of file adj_cellhd.c.
References G_debug(), G_warning(), and NULL.
Referenced by D_check_map_window(), E_edit_cellhd(), G__read_Cell_head_array(), G_align_window(), and G_set_window().
Adjust cell header for 3D values.
This function fills in missing parts of the input cell header (or region). It also makes projection-specific adjustments. The cellhd structure must have its north, south, east, west, and proj fields set.
If row_flag is true, then the north-south resolution is computed from the number of rows in the cellhd structure. Otherwise the number of rows is computed from the north-south resolution in the structure, similarly for col_flag and the number of columns and the east-west resolution.
If depth_flag is true, top-bottom resolution is calculated from depths. If depth_flag are false, number of depths is calculated from top-bottom resolution.
[in,out] | cellhd | |
[in] | row_flag | |
[in] | col_flag | |
[in] | depth_flag |
Definition at line 194 of file adj_cellhd.c.
References G_debug(), G_warning(), and NULL.
Referenced by G3d_adjustRegion(), and G3d_adjustRegionRes().