|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
#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>
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. | |
| 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. | |
Read spatial index file.
| fp | pointer to gvfile structure | |
| [in,out] | plus | pointer to Plus_head structure |
| head_only | non-zero to read only head |
Definition at line 296 of file cindex_rw.c.
References 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, and Plus_head::n_cidx.
Referenced by Vect_cidx_open().
Read header of cidx file.
| fp | pointer to gvfile structure |
| plus | pointer to Plus_head structure |
Definition at line 122 of file cindex_rw.c.
References _, Plus_head::a_cidx, Plus_head::cidx, Plus_head::cidx_head_size, Plus_head::cidx_port, Plus_head::coor_size, dig__fread_port_C(), dig__fread_port_I(), dig__fread_port_L(), dig__fread_port_O(), dig_fseek(), dig_init_portable(), dig_rewind(), dig_set_cur_port(), dig_type_from_store(), G_debug(), G_fatal_error(), G_realloc, G_warning(), GRASS_VERSION_MAJOR, GRASS_VERSION_MINOR, GV_CIDX_VER_MAJOR, GV_CIDX_VER_MINOR, Plus_head::n_cidx, NULL, Plus_head::off_t_size, PORT_LONG_MAX, t, and Plus_head::version.
Referenced by dig_read_cidx().
Definition at line 252 of file cindex_rw.c.
References Plus_head::cidx, Plus_head::cidx_port, dig__fwrite_port_I(), dig_ftell(), dig_rewind(), dig_set_cur_port(), dig_type_from_store(), dig_type_to_store(), dig_write_cidx_head(), and Plus_head::n_cidx.
Referenced by Vect_cidx_save().
Definition at line 25 of file cindex_rw.c.
References Plus_head::cidx, Plus_head::cidx_port, Plus_head::coor_size, dig__fwrite_port_C(), dig__fwrite_port_I(), dig__fwrite_port_L(), dig__fwrite_port_O(), dig_ftell(), dig_rewind(), dig_set_cur_port(), dig_type_to_store(), G_debug(), GV_CIDX_EARLIEST_MAJOR, GV_CIDX_EARLIEST_MINOR, GV_CIDX_VER_MAJOR, GV_CIDX_VER_MINOR, Plus_head::n_cidx, Plus_head::off_t_size, PORT_LONG_MAX, and t.
Referenced by dig_write_cidx().