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

A simple program that generates a given number of tgeompoint instants, assembles the instants into a sequence at the end of the generation process, and outputs the number of instants and the distance travelled. More...

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

Macros

#define GEODETIC   false
 
#define MAX_LEN_INST   64
 
#define MAX_NUM_INSTS   1000000
 
#define NUM_INSTS_BATCH   10000
 

Functions

int main (void)
 

Detailed Description

A simple program that generates a given number of tgeompoint instants, assembles the instants into a sequence at the end of the generation process, and outputs the number of instants and the distance travelled.

The instants are generated so they are not redundant, that is, all input instants will appear in the final sequence.

The program can be build as follows

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