GRASS Programmer's Manual 6.4.1(2011)
rtree/test.c File Reference
#include <stdio.h>
#include "index.h"
Include dependency graph for rtree/test.c:

Go to the source code of this file.

Functions

int MySearchCallback (int id, void *arg)
int main ()

Variables

struct Rect rects []
int nrects = sizeof(rects) / sizeof(rects[0])
struct Rect search_rect

Function Documentation

int main ( )

Definition at line 41 of file rtree/test.c.

References MySearchCallback(), nrects, RTreeInsertRect(), RTreeNewIndex(), and RTreeSearch().

int MySearchCallback ( int  id,
void *  arg 
)

Definition at line 34 of file rtree/test.c.

Referenced by main().


Variable Documentation

int nrects = sizeof(rects) / sizeof(rects[0])

Definition at line 29 of file rtree/test.c.

Referenced by main().

struct Rect rects[]
Initial value:
 {
    {{0, 0, 0, 2, 2, 0}},       
    {{5, 5, 0, 7, 7, 0}},
    {{8, 5, 0, 9, 6, 0}},
    {{7, 1, 0, 9, 2, 0}}
}

Definition at line 21 of file rtree/test.c.

struct Rect search_rect
Initial value:
 {
    {6, 4, 0, 10, 6, 0}         
}

Definition at line 30 of file rtree/test.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines