GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71817
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cindex_rw.c File Reference
#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

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 291 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(), Cat_index::n_cats, Plus_head::n_cidx, and Cat_index::offset.

Referenced by Vect_cidx_open().