MobilityDB
1.0
|
Data generator for MobilityDB. More...
#include "point/tpoint_datagen.h"
#include <access/htup_details.h>
#include <access/tupdesc.h>
#include <executor/executor.h>
#include <utils/builtins.h>
#include <utils/lsyscache.h>
#include <utils/timestamp.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include "general/temporaltypes.h"
#include "general/tempcache.h"
#include "general/temporal_util.h"
#include "point/postgis.h"
#include "point/tpoint.h"
#include "point/tpoint_spatialfuncs.h"
Macros | |
#define | RADIANS_PER_DEGREE 0.0174532925199432957692 |
#define | ADD_CURRENT_POSITION |
Functions | |
static void | initialize_gsl () |
static double | pt_angle (POINT2D p1, POINT2D p2, POINT2D p3) |
Returns the angle in degrees between 3 points. More... | |
TSequence * | create_trip_internal (LWLINE **lines, const double *maxSpeeds, const int *categories, uint32_t noEdges, TimestampTz startTime, bool disturbData, int verbosity) |
Create a trip using the BerlinMOD data generator (internal function) More... | |
Datum | create_trip (PG_FUNCTION_ARGS) |
Create a trip using the BerlinMOD data generator. More... | |
Variables | |
bool | _gsl_initizalized = false |
const gsl_rng_type * | _rng_type |
gsl_rng * | _rng |
Data generator for MobilityDB.
These functions are used in particular for the BerlinMOD data generator https://github.com/MobilityDB/MobilityDB-BerlinMOD