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 MEOS bounding boxes, i.e., floatspan, tstzspan, tbox, and stbox More...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <meos.h>
#include <meos_geo.h>
#include <meos_internal.h>
#include <meos_internal_geo.h>

Macros

#define BBOX_TYPE   STBOX
 
#define FLOATSPAN   1
 
#define MAX_LEN_BBOX   100
 
#define NO_BBOX   10000
 
#define TBOX   3
 
#define TSTZSPAN   2
 

Functions

int get_random_number (int min, int max)
 
int main ()
 
void print_bbox (const void *box, char *prefix)
 

Variables

bool actual_result [NO_BBOX]
 
STBoxboxes
 
bool index_result [NO_BBOX]
 

Detailed Description

A simple program to use an RTree index for searching MEOS bounding boxes, i.e., floatspan, tstzspan, tbox, and stbox

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