GRASS GIS 7 Programmer's Manual  7.9.dev(2020)-5fd8c298d
raster.h File Reference
#include <grass/gis.h>
#include <grass/defs/raster.h>
Include dependency graph for raster.h:

Go to the source code of this file.

Data Structures

struct  Reclass
 
struct  FPReclass_table
 
struct  FPReclass
 
struct  Quant_table
 
struct  Quant
 
struct  Categories
 
struct  History
 Raster history info (metadata) More...
 
struct  Cell_stats
 
struct  Cell_stats::Cell_stats_node
 
struct  Histogram
 
struct  Histogram::Histogram_list
 
struct  R_stats
 
struct  Range
 
struct  FPRange
 
struct  FP_stats
 

Macros

#define RECLASS_TABLE   1
 
#define RECLASS_RULES   2
 
#define RECLASS_SCALE   3
 
#define CELL_TYPE   0
 
#define FCELL_TYPE   1
 
#define DCELL_TYPE   2
 
#define INTERP_UNKNOWN   0
 Interpolation methods. More...
 
#define INTERP_NEAREST   1 /* nearest neighbor interpolation */
 
#define INTERP_BILINEAR   2 /* bilinear interpolation */
 
#define INTERP_BICUBIC   3 /* bicubic interpolation */
 

Typedefs

typedef int RASTER_MAP_TYPE
 
typedef int INTERP_TYPE
 

Enumerations

enum  History_field {
  HIST_MAPID, HIST_TITLE, HIST_MAPSET, HIST_CREATOR,
  HIST_MAPTYPE, HIST_DATSRC_1, HIST_DATSRC_2, HIST_KEYWRD,
  HIST_NUM_FIELDS
}
 Raster history info (metadata) More...
 

Macro Definition Documentation

◆ CELL_TYPE

◆ DCELL_TYPE

◆ FCELL_TYPE

◆ INTERP_BICUBIC

#define INTERP_BICUBIC   3 /* bicubic interpolation */

Definition at line 22 of file raster.h.

Referenced by Rast_option_to_interp_type().

◆ INTERP_BILINEAR

#define INTERP_BILINEAR   2 /* bilinear interpolation */

Definition at line 21 of file raster.h.

Referenced by Rast_option_to_interp_type().

◆ INTERP_NEAREST

#define INTERP_NEAREST   1 /* nearest neighbor interpolation */

Definition at line 20 of file raster.h.

Referenced by Rast_option_to_interp_type().

◆ INTERP_UNKNOWN

#define INTERP_UNKNOWN   0

Interpolation methods.

For G_get_raster_sample(), INTERP_TYPE

Definition at line 19 of file raster.h.

Referenced by Rast_option_to_interp_type().

◆ RECLASS_RULES

#define RECLASS_RULES   2

Definition at line 8 of file raster.h.

◆ RECLASS_SCALE

#define RECLASS_SCALE   3

Definition at line 9 of file raster.h.

◆ RECLASS_TABLE

#define RECLASS_TABLE   1

Definition at line 7 of file raster.h.

Referenced by Rast_free_reclass(), and Rast_put_reclass().

Typedef Documentation

◆ INTERP_TYPE

typedef int INTERP_TYPE

Definition at line 28 of file raster.h.

◆ RASTER_MAP_TYPE

typedef int RASTER_MAP_TYPE

Definition at line 25 of file raster.h.

Enumeration Type Documentation

◆ History_field

Raster history info (metadata)

See History structure for implementation issues.

Enumerator
HIST_MAPID 

Raster name.

HIST_TITLE 

Raster title.

HIST_MAPSET 

Raster mapset.

HIST_CREATOR 

User who creater raster map.

HIST_MAPTYPE 

Map type ("raster", "reclass", "GDAL-link", or "virtual")

HIST_DATSRC_1 

Description of original data source (two lines)

HIST_DATSRC_2 
HIST_KEYWRD 

One-line data description.

HIST_NUM_FIELDS 

Number of fields to be defined in History structure.

Definition at line 157 of file raster.h.