GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
Cell_head Struct Reference

2D/3D raster map header (used also for region) More...

#include <gis.h>

Data Fields

int format
 Max number of bytes per raster data value minus 1 (raster header only) More...
 
int compressed
 Compression mode (raster header only) More...
 
int rows
 Number of rows for 2D data. More...
 
int rows3
 Number of rows for 3D data. More...
 
int cols
 Number of columns for 2D data. More...
 
int cols3
 Number of columns for 3D data. More...
 
int depths
 number of depths for 3D data More...
 
int proj
 Projection code. More...
 
int zone
 Projection zone (UTM) More...
 
double ew_res
 Resolution - east to west cell size for 2D data. More...
 
double ew_res3
 Resolution - east to west cell size for 3D data. More...
 
double ns_res
 Resolution - north to south cell size for 2D data. More...
 
double ns_res3
 Resolution - north to south cell size for 3D data. More...
 
double tb_res
 Resolution - top to bottom cell size for 3D data. More...
 
double north
 Extent coordinates (north) More...
 
double south
 Extent coordinates (south) More...
 
double east
 Extent coordinates (east) More...
 
double west
 Extent coordinates (west) More...
 
double top
 Extent coordinates (top) - 3D data. More...
 
double bottom
 Extent coordinates (bottom) - 3D data. More...
 

Detailed Description

2D/3D raster map header (used also for region)

Definition at line 440 of file gis.h.

Field Documentation

◆ bottom

double Cell_head::bottom

Extent coordinates (bottom) - 3D data.

Definition at line 496 of file gis.h.

Referenced by G__write_Cell_head3(), GS_get_aspect(), GS_set_viewport(), Rast3d_region_from_to_cell_head(), and Rast3d_region_to_cell_head().

◆ cols

◆ cols3

int Cell_head::cols3

Number of columns for 3D data.

Definition at line 461 of file gis.h.

Referenced by G__write_Cell_head3(), G_adjust_Cell_head3(), Rast3d_region_from_to_cell_head(), and Rast3d_region_to_cell_head().

◆ compressed

int Cell_head::compressed

Compression mode (raster header only)

  • 0: uncompressed
  • 1: compressed
  • -1: pre GRASS 3.0

Definition at line 453 of file gis.h.

Referenced by G__write_Cell_head(), G_get_3dview_defaults(), Rast__check_format(), Rast__open_old(), and Rast__read_row_ptrs().

◆ depths

int Cell_head::depths

◆ east

◆ ew_res

◆ ew_res3

double Cell_head::ew_res3

Resolution - east to west cell size for 3D data.

Definition at line 478 of file gis.h.

Referenced by G__write_Cell_head3(), G_adjust_Cell_head3(), Rast3d_region_from_to_cell_head(), and Rast3d_region_to_cell_head().

◆ format

int Cell_head::format

Max number of bytes per raster data value minus 1 (raster header only)

Note: -1 for FP raster maps

Definition at line 446 of file gis.h.

Referenced by G__write_Cell_head(), G_get_3dview_defaults(), and Rast__open_old().

◆ north

◆ ns_res

◆ ns_res3

double Cell_head::ns_res3

Resolution - north to south cell size for 3D data.

Definition at line 482 of file gis.h.

Referenced by G__write_Cell_head3(), G_adjust_Cell_head3(), Rast3d_region_from_to_cell_head(), and Rast3d_region_to_cell_head().

◆ proj

◆ rows

◆ rows3

int Cell_head::rows3

Number of rows for 3D data.

Definition at line 457 of file gis.h.

Referenced by G__write_Cell_head3(), G_adjust_Cell_head3(), Rast3d_region_from_to_cell_head(), and Rast3d_region_to_cell_head().

◆ south

◆ tb_res

double Cell_head::tb_res

Resolution - top to bottom cell size for 3D data.

Definition at line 484 of file gis.h.

Referenced by G__write_Cell_head3(), G_adjust_Cell_head3(), Rast3d_region_from_to_cell_head(), and Rast3d_region_to_cell_head().

◆ top

double Cell_head::top

Extent coordinates (top) - 3D data.

Definition at line 494 of file gis.h.

Referenced by G__write_Cell_head3(), GS_get_aspect(), GS_set_viewport(), Rast3d_region_from_to_cell_head(), and Rast3d_region_to_cell_head().

◆ west

◆ zone


The documentation for this struct was generated from the following file: