MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
tpose.c File Reference
#include <assert.h>
#include <postgres.h>
#include <common/hashfn.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_pose.h>
#include <meos_internal.h>
#include <meos_internal_geo.h>
#include "temporal/lifting.h"
#include "temporal/set.h"
#include "temporal/span.h"
#include "temporal/spanset.h"
#include "temporal/type_util.h"
#include "geo/tgeo_spatialfuncs.h"
#include "geo/tspatial_parser.h"
#include "pose/pose.h"

Functions

bool ensure_valid_tpose_geo (const Temporal *temp, const GSERIALIZED *gs)
 General functions for temporal pose objects. More...
 
bool ensure_valid_tpose_pose (const Temporal *temp, const Pose *pose)
 Ensure the validity of a temporal pose and a pose. More...
 
bool ensure_valid_tpose_stbox (const Temporal *temp, const STBox *box)
 Ensure the validity of a temporal pose and a spatiotemporal box. More...
 
bool ensure_valid_tpose_tpose (const Temporal *temp1, const Temporal *temp2)
 Ensure the validity of two temporal poses. More...
 
static TInstanttpoint_tfloat_inst_to_tpose (const TInstant *inst1, const TInstant *inst2)
 Return a temporal pose instant from the temporal point and a temporal float instants. More...
 
static TSequencetpoint_tfloat_seq_to_tpose (const TSequence *seq1, const TSequence *seq2)
 Return a temporal pose sequence from a temporal point and a temporal float sequences. More...
 
static TSequenceSettpoint_tfloat_seqset_to_tpose (const TSequenceSet *ss1, const TSequenceSet *ss2)
 Return a temporal pose sequence set from a temporal point and a temporal float sequence sets. More...
 
Temporaltpoint_tfloat_to_tpose (const Temporal *tpoint, const Temporal *tradius)
 Return a temporal pose from a temporal point and a temporal float. More...
 
Temporaltpose_at_pose (const Temporal *temp, const Pose *pose)
 Return a temporal pose restricted to a pose. More...
 
Posetpose_end_value (const Temporal *temp)
 Return a copy of the end value of a temporal pose. More...
 
Temporaltpose_from_mfjson (const char *mfjson)
 Return a temporal pose from its MF-JSON representation. More...
 
Temporaltpose_in (const char *str)
 Return a temporal pose from its Well-Known Text (WKT) representation. More...
 
Temporaltpose_minus_pose (const Temporal *temp, const Pose *pose)
 Return a temporal pose restricted to the complement of a pose. More...
 
Settpose_points (const Temporal *temp)
 Return the array of points of a temporal pose @csqlfn Tpose_points() More...
 
Temporaltpose_rotation (const Temporal *temp)
 Return a the rotation of a temporal pose as a temporal float. More...
 
Posetpose_start_value (const Temporal *temp)
 Return a copy of the start value of a temporal pose. More...
 
Temporaltpose_to_tpoint (const Temporal *temp)
 Return a geometry point from a temporal pose. More...
 
bool tpose_value_at_timestamptz (const Temporal *temp, TimestampTz t, bool strict, Pose **value)
 Return the value of a temporal pose at a timestamptz. More...
 
bool tpose_value_n (const Temporal *temp, int n, Pose **result)
 Return a copy of the n-th value of a temporal pose. More...
 
Pose ** tpose_values (const Temporal *temp, int *count)
 Return the array of copies of base values of a temporal pose. More...
 
TInstanttposeinst_in (const char *str)
 Return a temporal pose instant from its Well-Known Text (WKT) representation. More...
 
Settposeinst_points (const TInstant *inst)
 Return the points of a temporal pose. More...
 
int tposesegm_intersection_value (Datum start, Datum end, Datum value, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Return 1 if a segment of a temporal pose value intersects a pose at the timestamp output in the last argument. More...
 
TSequencetposeseq_in (const char *str, interpType interp UNUSED)
 Return a temporal pose sequence from its Well-Known Text (WKT) representation. More...
 
Settposeseq_points (const TSequence *seq)
 Return the points of a temporal pose. More...
 
TSequenceSettposeseqset_in (const char *str)
 Return a temporal pose sequence set from its Well-Known Text (WKT) representation. More...
 
Settposeseqset_points (const TSequenceSet *ss)
 Return the points of a temporal pose. More...