MobilityDB 1.3
Loading...
Searching...
No Matches

◆ MAX_LENGTH_TRIP

#define MAX_LENGTH_TRIP   400001

A simple program that reads from a CSV file synthetic trip data in Brussels generated by the MobilityDB-BerlinMOD generator https://github.com/MobilityDB/MobilityDB-BerlinMOD simplifies the trips using both Douglas-Peucker (DP) and Synchronized Euclidean Distance (SED, also known as Top-Down Time Ratio simplification), and outputs for each trip the initial number of instants and the number of instants of the two simplified trips.

Please read the assumptions made about the input file berlinmod_trips.csv in the file 05_berlinmod_disassemble.c in the same directory.

The program can be build as follows

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

Maximum length in characters of a trip in the input data. This value is set according to the following query executed in the database created by the MobilityDB-BerlinMOD generator.

SELECT MAX(length(asHexEWKB(trip))) FROM trips;
-- 328178