GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-602118adcc
|
#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. 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... | |
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 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().
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 _, Cat_index::a_cats, Plus_head::a_cidx, Version_info::back_major, Version_info::back_minor, Cat_index::cat, 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(), Cat_index::field, G_debug(), G_fatal_error(), G_realloc, G_warning(), GRASS_VERSION_MAJOR, GRASS_VERSION_MINOR, GV_CIDX_VER_MAJOR, GV_CIDX_VER_MINOR, Version_info::major, Version_info::minor, Cat_index::n_cats, Plus_head::n_cidx, Cat_index::n_types, Cat_index::n_ucats, NULL, Plus_head::off_t_size, Cat_index::offset, PORT_LONG_MAX, t, Cat_index::type, and Plus_head::version.
Referenced by dig_read_cidx().
Definition at line 252 of file cindex_rw.c.
References Cat_index::cat, 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(), Cat_index::n_cats, Plus_head::n_cidx, and Cat_index::offset.
Definition at line 25 of file cindex_rw.c.
References Port_info::byte_order, 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(), Cat_index::field, G_debug(), GV_CIDX_EARLIEST_MAJOR, GV_CIDX_EARLIEST_MINOR, GV_CIDX_VER_MAJOR, GV_CIDX_VER_MINOR, Cat_index::n_cats, Plus_head::n_cidx, Cat_index::n_types, Cat_index::n_ucats, Plus_head::off_t_size, Cat_index::offset, PORT_LONG_MAX, t, and Cat_index::type.
Referenced by dig_write_cidx().