GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-60f67276fb
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.


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.

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 rectangles that overlap the argument rectangle.

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

Definition at line 40 of file rtree_search.c.

References assert, G_init_ilist(), r, and t.