GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
Cat_index Struct Reference

Category index. More...

#include <dig_structs.h>

Data Fields

int field
 Field (layer) number. More...
 
int n_cats
 Number of items in cat array. More...
 
int a_cats
 Allocated space in cat array. More...
 
int(* cat )[3]
 Array of cats (cat, type, lines/area) More...
 
int n_ucats
 Number of unique cats (not updated) More...
 
int n_types
 Number of types in type. More...
 
int type [7][2]
 Number of elements for each type. More...
 
off_t offset
 Offset of the beginning of this index in cidx file. More...
 

Detailed Description

Category index.

Definition at line 718 of file dig_structs.h.

Field Documentation

◆ a_cats

int Cat_index::a_cats

Allocated space in cat array.

Definition at line 730 of file dig_structs.h.

Referenced by dig_cidx_free(), dig_read_cidx(), and dig_read_cidx_head().

◆ cat

int(* Cat_index::cat)[3]

Array of cats (cat, type, lines/area)

Definition at line 734 of file dig_structs.h.

Referenced by dig_cidx_free(), dig_read_cidx(), dig_read_cidx_head(), and dig_write_cidx().

◆ field

int Cat_index::field

Field (layer) number.

Definition at line 722 of file dig_structs.h.

Referenced by dig_cidx_free(), dig_read_cidx_head(), dig_write_cidx_head(), and Vect_cidx_dump().

◆ n_cats

int Cat_index::n_cats

Number of items in cat array.

Definition at line 726 of file dig_structs.h.

Referenced by dig_cidx_free(), dig_read_cidx(), dig_read_cidx_head(), dig_write_cidx(), and dig_write_cidx_head().

◆ n_types

int Cat_index::n_types

Number of types in type.

Definition at line 742 of file dig_structs.h.

Referenced by dig_cidx_free(), dig_read_cidx_head(), and dig_write_cidx_head().

◆ n_ucats

int Cat_index::n_ucats

Number of unique cats (not updated)

Definition at line 738 of file dig_structs.h.

Referenced by dig_read_cidx_head(), and dig_write_cidx_head().

◆ offset

off_t Cat_index::offset

Offset of the beginning of this index in cidx file.

Definition at line 758 of file dig_structs.h.

Referenced by dig_read_cidx(), dig_read_cidx_head(), dig_write_cidx(), and dig_write_cidx_head().

◆ type

int Cat_index::type[7][2]

Number of elements for each type.

  • GV_POINT
  • GV_LINE
  • GV_BOUNDARY
  • GV_CENTROID
  • GV_FACE
  • GV_KERNEL
  • GV_AREA

Definition at line 754 of file dig_structs.h.

Referenced by dig_read_cidx_head(), and dig_write_cidx_head().


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