#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_spidx_init (struct Plus_head *Plus) |
void | dig_spidx_free_nodes (struct Plus_head *Plus) |
void | dig_spidx_free_lines (struct Plus_head *Plus) |
void | dig_spidx_free_areas (struct Plus_head *Plus) |
void | dig_spidx_free_isles (struct Plus_head *Plus) |
void | dig_spidx_free (struct Plus_head *Plus) |
int | dig_spidx_add_node (struct Plus_head *Plus, int node, double x, double y, double z) |
int | dig_spidx_add_line (struct Plus_head *Plus, int line, BOUND_BOX *box) |
int | dig_spidx_add_area (struct Plus_head *Plus, int area, BOUND_BOX *box) |
int | dig_spidx_add_isle (struct Plus_head *Plus, int isle, BOUND_BOX *box) |
int | dig_spidx_del_node (struct Plus_head *Plus, int node) |
int | dig_spidx_del_line (struct Plus_head *Plus, int line) |
int | dig_spidx_del_area (struct Plus_head *Plus, int area) |
int | dig_spidx_del_isle (struct Plus_head *Plus, int isle) |
int | dig_select_nodes (struct Plus_head *Plus, BOUND_BOX *box, struct ilist *list) |
int | dig_find_node (struct Plus_head *Plus, double x, double y, double z) |
int | dig_select_lines (struct Plus_head *Plus, BOUND_BOX *box, struct ilist *list) |
int | dig_select_areas (struct Plus_head *Plus, BOUND_BOX *box, struct ilist *list) |
int | dig_select_isles (struct Plus_head *Plus, BOUND_BOX *box, struct ilist *list) |
int dig_find_node | ( | struct Plus_head * | Plus, | |
double | x, | |||
double | y, | |||
double | z | |||
) |
Definition at line 340 of file spindex.c.
References Rect::boundary, dig_init_list(), and RTreeSearch().
Referenced by dig_add_line().
int dig_select_areas | ( | struct Plus_head * | Plus, | |
BOUND_BOX * | box, | |||
struct ilist * | list | |||
) |
Definition at line 388 of file spindex.c.
References Rect::boundary, and RTreeSearch().
Referenced by Vect_select_areas_by_box().
int dig_select_isles | ( | struct Plus_head * | Plus, | |
BOUND_BOX * | box, | |||
struct ilist * | list | |||
) |
Definition at line 410 of file spindex.c.
References Rect::boundary, and RTreeSearch().
Referenced by Vect_select_isles_by_box().
int dig_select_lines | ( | struct Plus_head * | Plus, | |
BOUND_BOX * | box, | |||
struct ilist * | list | |||
) |
Definition at line 366 of file spindex.c.
References Rect::boundary, and RTreeSearch().
Referenced by Vect_select_lines_by_box().
int dig_select_nodes | ( | struct Plus_head * | Plus, | |
BOUND_BOX * | box, | |||
struct ilist * | list | |||
) |
Definition at line 310 of file spindex.c.
References Rect::boundary, and RTreeSearch().
Referenced by Vect_select_nodes_by_box().
int dig_spidx_add_area | ( | struct Plus_head * | Plus, | |
int | area, | |||
BOUND_BOX * | box | |||
) |
Definition at line 141 of file spindex.c.
References Rect::boundary, and RTreeInsertRect().
Referenced by dig_add_area(), and Vect_build_sidx_from_topo().
int dig_spidx_add_isle | ( | struct Plus_head * | Plus, | |
int | isle, | |||
BOUND_BOX * | box | |||
) |
Definition at line 163 of file spindex.c.
References Rect::boundary, and RTreeInsertRect().
Referenced by dig_add_isle(), and Vect_build_sidx_from_topo().
int dig_spidx_add_line | ( | struct Plus_head * | Plus, | |
int | line, | |||
BOUND_BOX * | box | |||
) |
Definition at line 120 of file spindex.c.
References Rect::boundary, and RTreeInsertRect().
Referenced by dig_add_line(), and Vect_build_sidx_from_topo().
int dig_spidx_add_node | ( | struct Plus_head * | Plus, | |
int | node, | |||
double | x, | |||
double | y, | |||
double | z | |||
) |
Definition at line 98 of file spindex.c.
References Rect::boundary, and RTreeInsertRect().
Referenced by dig_add_node(), and Vect_build_sidx_from_topo().
int dig_spidx_del_area | ( | struct Plus_head * | Plus, | |
int | area | |||
) |
Definition at line 244 of file spindex.c.
References Rect::boundary, and RTreeDeleteRect().
Referenced by dig_del_area().
int dig_spidx_del_isle | ( | struct Plus_head * | Plus, | |
int | isle | |||
) |
Definition at line 276 of file spindex.c.
References Rect::boundary, and RTreeDeleteRect().
Referenced by dig_del_isle().
int dig_spidx_del_line | ( | struct Plus_head * | Plus, | |
int | line | |||
) |
Definition at line 212 of file spindex.c.
References Rect::boundary, and RTreeDeleteRect().
Referenced by dig_del_line().
int dig_spidx_del_node | ( | struct Plus_head * | Plus, | |
int | node | |||
) |
Definition at line 184 of file spindex.c.
References Rect::boundary, and RTreeDeleteRect().
Referenced by dig_del_line().
void dig_spidx_free | ( | struct Plus_head * | Plus | ) |
Definition at line 81 of file spindex.c.
References dig_spidx_free_areas(), dig_spidx_free_isles(), dig_spidx_free_lines(), and dig_spidx_free_nodes().
Referenced by Vect__open_old(), and Vect_close().
void dig_spidx_free_areas | ( | struct Plus_head * | Plus | ) |
Definition at line 65 of file spindex.c.
References RTreeDestroyNode(), and RTreeNewIndex().
Referenced by dig_spidx_free(), and Vect_build_nat().
void dig_spidx_free_isles | ( | struct Plus_head * | Plus | ) |
Definition at line 70 of file spindex.c.
References RTreeDestroyNode(), and RTreeNewIndex().
Referenced by dig_spidx_free(), and Vect_build_nat().
void dig_spidx_free_lines | ( | struct Plus_head * | Plus | ) |
Definition at line 60 of file spindex.c.
References RTreeDestroyNode(), and RTreeNewIndex().
Referenced by dig_spidx_free(), and Vect_build_nat().
void dig_spidx_free_nodes | ( | struct Plus_head * | Plus | ) |
Definition at line 55 of file spindex.c.
References RTreeDestroyNode(), and RTreeNewIndex().
Referenced by dig_spidx_free(), and Vect_build_nat().
int dig_spidx_init | ( | struct Plus_head * | Plus | ) |
Definition at line 33 of file spindex.c.
References RTreeNewIndex().
Referenced by dig_init_plus(), dig_read_spidx(), Vect_build_sidx_from_topo(), and Vect_open_spatial_index().