#include <stdlib.h>#include <string.h>#include "glocale.h"#include "gis.h"#include "Vect.h"Include dependency graph for sindex.c:

Go to the source code of this file.
Functions | |
| void | Vect_spatial_index_init (SPATIAL_INDEX *si) |
| init spatial index | |
| void | Vect_spatial_index_destroy (SPATIAL_INDEX *si) |
| destroy existing spatial index, Vect_spatial_index_init() must be call before new use | |
| void | Vect_spatial_index_add_item (SPATIAL_INDEX *si, int id, BOUND_BOX *box) |
| Add a new item to spatial index. | |
| void | Vect_spatial_index_del_item (SPATIAL_INDEX *si, int id) |
| Delete item from spatial index. | |
| int | Vect_build_spatial_index (struct Map_info *Map, FILE *msgout) |
| Create spatial index if necessary. To be used in modules. Map must be opened on level 2. | |
| int | Vect_build_sidx_from_topo (struct Map_info *Map, FILE *msgout) |
| Create spatial index from topo if necessary. | |
| int | Vect_spatial_index_select (SPATIAL_INDEX *si, BOUND_BOX *box, struct ilist *list) |
| Select items by bounding box to list. | |
| int Vect_build_sidx_from_topo | ( | struct Map_info * | Map, | |
| FILE * | msgout | |||
| ) |
Create spatial index from topo if necessary.
| Map | pointer to map | |
| out | print progress here |
1 error
Definition at line 124 of file sindex.c.
Referenced by Vect_build_spatial_index(), Vect_open_update(), Vect_select_areas_by_box(), Vect_select_isles_by_box(), Vect_select_lines_by_box(), Vect_select_nodes_by_box(), and Vect_spatial_index_dump().
| int Vect_build_spatial_index | ( | struct Map_info * | Map, | |
| FILE * | msgout | |||
| ) |
Create spatial index if necessary. To be used in modules. Map must be opened on level 2.
| Map | pointer to map | |
| out | print progress here |
1 error
Definition at line 105 of file sindex.c.
References Vect_build_sidx_from_topo().
| void Vect_spatial_index_add_item | ( | SPATIAL_INDEX * | si, | |
| int | id, | |||
| BOUND_BOX * | box | |||
| ) |
| void Vect_spatial_index_del_item | ( | SPATIAL_INDEX * | si, | |
| int | id | |||
| ) |
| void Vect_spatial_index_destroy | ( | SPATIAL_INDEX * | si | ) |
destroy existing spatial index, Vect_spatial_index_init() must be call before new use
| si | pointer to spatial index structure |
| void Vect_spatial_index_init | ( | SPATIAL_INDEX * | si | ) |
| int Vect_spatial_index_select | ( | SPATIAL_INDEX * | si, | |
| BOUND_BOX * | box, | |||
| struct ilist * | list | |||
| ) |
1.4.7