#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Go to the source code of this file.
Functions | |
int | dig_Wr_spindx_head (GVFILE *fp, struct Plus_head *ptr) |
int | dig_Rd_spindx_head (GVFILE *fp, struct Plus_head *ptr) |
int | rtree_dump_node (FILE *fp, struct Node *n, int with_z) |
int | rtree_dump_branch (FILE *fp, struct Branch *b, int with_z, int level) |
int | rtree_write_node (GVFILE *fp, struct Node *n, int with_z) |
int | rtree_write_branch (GVFILE *fp, struct Branch *b, int with_z, int level) |
int | rtree_read_node (GVFILE *fp, struct Node *n, int with_z) |
int | rtree_read_branch (GVFILE *fp, struct Branch *b, int with_z, int level) |
int | dig_write_spidx (GVFILE *fp, struct Plus_head *Plus) |
int | dig_read_spidx (GVFILE *fp, struct Plus_head *Plus) |
int | dig_dump_spidx (FILE *fp, struct Plus_head *Plus) |
int dig_dump_spidx | ( | FILE * | fp, | |
struct Plus_head * | Plus | |||
) |
Definition at line 341 of file spindex_rw.c.
References rtree_dump_node().
Referenced by Vect_spatial_index_dump().
int dig_Rd_spindx_head | ( | GVFILE * | fp, | |
struct Plus_head * | ptr | |||
) |
Definition at line 72 of file spindex_rw.c.
References dig__fread_port_C(), dig__fread_port_L(), dig_fseek(), dig_init_portable(), dig_rewind(), and dig_set_cur_port().
Referenced by dig_read_spidx().
int dig_read_spidx | ( | GVFILE * | fp, | |
struct Plus_head * | Plus | |||
) |
Definition at line 313 of file spindex_rw.c.
References dig_fseek(), dig_Rd_spindx_head(), dig_rewind(), dig_set_cur_port(), dig_spidx_init(), and rtree_read_node().
Referenced by Vect_open_spatial_index().
int dig_Wr_spindx_head | ( | GVFILE * | fp, | |
struct Plus_head * | ptr | |||
) |
Definition at line 26 of file spindex_rw.c.
References dig__fwrite_port_C(), dig__fwrite_port_L(), dig_ftell(), dig_rewind(), and dig_set_cur_port().
Referenced by dig_write_spidx().
int dig_write_spidx | ( | GVFILE * | fp, | |
struct Plus_head * | Plus | |||
) |
Definition at line 286 of file spindex_rw.c.
References dig_ftell(), dig_rewind(), dig_set_cur_port(), dig_Wr_spindx_head(), and rtree_write_node().
Referenced by Vect_save_spatial_index().
int rtree_dump_branch | ( | FILE * | fp, | |
struct Branch * | b, | |||
int | with_z, | |||
int | level | |||
) |
Definition at line 145 of file spindex_rw.c.
References Rect::boundary, Branch::child, Branch::rect, and rtree_dump_node().
Referenced by rtree_dump_node().
int rtree_dump_node | ( | FILE * | fp, | |
struct Node * | n, | |||
int | with_z | |||
) |
Definition at line 164 of file spindex_rw.c.
References Node::branch, Branch::child, Node::count, LEAFCARD, Node::level, NODECARD, and rtree_dump_branch().
Referenced by dig_dump_spidx(), and rtree_dump_branch().
int rtree_read_branch | ( | GVFILE * | fp, | |
struct Branch * | b, | |||
int | with_z, | |||
int | level | |||
) |
Definition at line 232 of file spindex_rw.c.
References Rect::boundary, Branch::child, dig__fread_port_D(), dig__fread_port_I(), Branch::rect, rtree_read_node(), and RTreeNewNode().
Referenced by rtree_read_node().
int rtree_read_node | ( | GVFILE * | fp, | |
struct Node * | n, | |||
int | with_z | |||
) |
Definition at line 263 of file spindex_rw.c.
References Node::branch, Node::count, dig__fread_port_I(), Node::level, and rtree_read_branch().
Referenced by dig_read_spidx(), and rtree_read_branch().
int rtree_write_branch | ( | GVFILE * | fp, | |
struct Branch * | b, | |||
int | with_z, | |||
int | level | |||
) |
Definition at line 185 of file spindex_rw.c.
References Rect::boundary, Branch::child, dig__fwrite_port_D(), dig__fwrite_port_I(), Branch::rect, and rtree_write_node().
Referenced by rtree_write_node().
int rtree_write_node | ( | GVFILE * | fp, | |
struct Node * | n, | |||
int | with_z | |||
) |
Definition at line 209 of file spindex_rw.c.
References Node::branch, Branch::child, Node::count, dig__fwrite_port_I(), LEAFCARD, Node::level, NODECARD, and rtree_write_branch().
Referenced by dig_write_spidx(), and rtree_write_branch().