GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-602118adcc
cindex_rw.c File Reference
#include <inttypes.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <grass/vector.h>
#include <grass/glocale.h>
#include <grass/version.h>
Include dependency graph for cindex_rw.c:

Go to the source code of this file.

Functions

int dig_write_cidx_head (struct gvfile *fp, struct Plus_head *plus)
 
int dig_read_cidx_head (struct gvfile *fp, struct Plus_head *plus)
 Read header of cidx file. More...
 
int dig_write_cidx (struct gvfile *fp, struct Plus_head *plus)
 
int dig_read_cidx (struct gvfile *fp, struct Plus_head *plus, int head_only)
 Read spatial index file. More...
 

Function Documentation

◆ dig_read_cidx()

int dig_read_cidx ( struct gvfile fp,
struct Plus_head plus,
int  head_only 
)

Read spatial index file.

Parameters
fppointer to gvfile structure
[in,out]pluspointer to Plus_head structure
head_onlynon-zero to read only head
Returns
0 OK
1 error

Definition at line 296 of file cindex_rw.c.

References Cat_index::a_cats, Cat_index::cat, Plus_head::cidx, Plus_head::cidx_port, Plus_head::cidx_up_to_date, dig__fread_port_I(), dig_cidx_free(), dig_cidx_init(), dig_fseek(), dig_read_cidx_head(), dig_rewind(), dig_set_cur_port(), dig_type_from_store(), G_debug(), G_malloc, Cat_index::n_cats, Plus_head::n_cidx, and Cat_index::offset.

Referenced by Vect_cidx_open().

◆ dig_read_cidx_head()

◆ dig_write_cidx()

◆ dig_write_cidx_head()