MobilityDB 1.3
Loading...
Searching...
No Matches
Macros | Functions | Variables
rtree_example.c File Reference

A simple program to use an RTree index for searching. More...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <meos.h>
#include <meos_internal.h>

Macros

#define MAX_LEN_TRIP   100
 
#define NO_STBOX   10000
 

Functions

int get_random_number (int min, int max)
 
int main ()
 
void print_stbox (const STBox *stbox, char *prefix)
 

Variables

bool actual [NO_STBOX]
 
bool index_result [NO_STBOX]
 
STBoxstboxes
 

Detailed Description

A simple program to use an RTree index for searching.

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o rtree_example rtree_example.c -L/usr/lib -lproj -L/usr/local/lib -lmeos