GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
rtree_search.c File Reference

Vector library - simplified rtree search. More...

#include <assert.h>
#include <grass/vector.h>
Include dependency graph for rtree_search.c:

Go to the source code of this file.

Functions

int RTreeSearch2 (struct RTree *t, struct RTree_Rect *r, struct ilist *list)
 

Detailed Description

Vector library - simplified rtree search.

Higher level functions for reading/writing/manipulating vectors.

(C) 2012 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Soeren Gebbert

Definition in file rtree_search.c.

Function Documentation

◆ RTreeSearch2()

int RTreeSearch2 ( struct RTree t,
struct RTree_Rect r,
struct ilist list 
)

Search in an index tree for all data retangles that overlap the argument rectangle.

Parameters
tThe RTree
rThe argument rectangle
listThe list to store the ids of overlapping rectangles
Returns
the number of qualifying data rects.

Definition at line 38 of file rtree_search.c.

References assert, G_init_ilist(), and RTree::search_rect.