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

A simple program that a CSV file containing temporal points and applies a function to the temporal points. More...

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

Macros

#define MAX_LENGTH_HEADER   1024
 
#define MAX_LENGTH_TGEO   7501
 

Functions

int main (void)
 

Detailed Description

A simple program that a CSV file containing temporal points and applies a function to the temporal points.

The corresponding SQL query would be

SELECT k, numInstants(douglasPeuckerSimplify(temp, 5, true))
FROM tbl_tgeompoint;

The program can be tested with several functions such as simplification with Douglas-Peucker ... reduction such as tsample, tprecision, ...

The program can be build as follows

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