MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
tpose_boxops.c File Reference

Bounding box operators for temporal pose objects. More...

#include "pose/tpose_boxops.h"
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_pose.h>
#include <meos_internal.h>
#include <meos_internal_geo.h>
#include "temporal/span.h"
#include "pose/pose.h"

Functions

bool pose_set_stbox (const Pose *pose, STBox *box)
 Set the spatiotemporal box from the pose value. More...
 
bool pose_timestamptz_set_stbox (const Pose *pose, TimestampTz t, STBox *box)
 Return in the last argument a spatiotemporal box constructed from a pose and a timestamptz. More...
 
STBoxpose_timestamptz_to_stbox (const Pose *pose, TimestampTz t)
 Return a spatiotemporal box constructed from a pose and a timestamptz. More...
 
STBoxpose_to_stbox (const Pose *pose)
 Convert a pose into a spatiotemporal box. More...
 
bool pose_tstzspan_set_stbox (const Pose *pose, const Span *s, STBox *box)
 Return in the last argument a spatiotemporal box constructed from a pose and a timestamptz span. More...
 
STBoxpose_tstzspan_to_stbox (const Pose *pose, const Span *s)
 Return a spatiotemporal box constructed from a pose and a timestamptz. More...
 
void posearr_set_stbox (const Datum *values, int count, STBox *box)
 Return in the last argument a spatiotemporal box contructed from an array of poses. More...
 
void tposeinst_set_stbox (const TInstant *inst, STBox *box)
 Set the spatiotemporal box from the temporal pose value. More...
 
void tposeinstarr_set_stbox (const TInstant **instants, int count, STBox *box)
 Set the spatiotemporal box from the array of temporal pose values. More...
 
void tposeseq_expand_stbox (TSequence *seq, const TInstant *inst)
 Expand the bounding box of a temporal pose sequence with an instant. More...
 

Detailed Description

Bounding box operators for temporal pose objects.

These operators test the bounding boxes of temporal poses, which are STBox boxes. The following operators are defined: overlaps, contains, contained, same The operators consider as many dimensions as they are shared in both arguments: only the space dimension, only the time dimension, or both the space and the time dimensions.