MobilityDB
1.0
|
Bounding box operators for temporal points. More...
#include "point/tpoint_boxops.h"
#include <assert.h>
#include <utils/builtins.h>
#include <utils/timestamp.h>
#include "general/timestampset.h"
#include "general/periodset.h"
#include "general/temporaltypes.h"
#include "general/temporal_util.h"
#include "general/temporal_boxops.h"
#include "point/tpoint.h"
#include "point/stbox.h"
#include "point/tpoint_spatialfuncs.h"
Functions | |
void | tpointinst_make_stbox (STBOX *box, const TInstant *inst) |
Set the spatiotemporal box from the temporal point value. More... | |
void | tpointinstarr_to_stbox (STBOX *box, const TInstant **instants, int count) |
Set the spatiotemporal box from the array of temporal point values. More... | |
void | tpointseqarr_to_stbox (STBOX *box, const TSequence **sequences, int count) |
Set the spatiotemporal box from the array of temporal point values. More... | |
static int | tpointseq_stboxes1 (STBOX *result, const TSequence *seq) |
Returns an array of spatiotemporal boxes from the segments of the temporal sequence point value. More... | |
ArrayType * | tpointseq_stboxes (const TSequence *seq) |
Returns an array of spatiotemporal boxes from the segments of the temporal sequence point value. More... | |
ArrayType * | tpointseqset_stboxes (const TSequenceSet *ts) |
Returns an array of spatiotemporal boxes from the segments of the temporal sequence set point value. More... | |
PGDLLEXPORT Datum | tpoint_stboxes (PG_FUNCTION_ARGS) |
Returns an array of spatiotemporal boxes from the temporal point. More... | |
Datum | boxop_geo_tpoint (FunctionCallInfo fcinfo, bool(*func)(const STBOX *, const STBOX *)) |
Generic box function for a geometry and a temporal point. More... | |
Datum | boxop_tpoint_geo (FunctionCallInfo fcinfo, bool(*func)(const STBOX *, const STBOX *)) |
Generic topological function for a temporal point and a geometry. More... | |
Datum | boxop_stbox_tpoint (FunctionCallInfo fcinfo, bool(*func)(const STBOX *, const STBOX *)) |
Generic topological function for a spatiotemporal box and a temporal point. More... | |
Datum | boxop_tpoint_stbox (FunctionCallInfo fcinfo, bool(*func)(const STBOX *, const STBOX *)) |
Generic topological function for a temporal point and a spatiotemporal box. More... | |
Datum | boxop_tpoint_tpoint (FunctionCallInfo fcinfo, bool(*func)(const STBOX *, const STBOX *)) |
Generic topological function for two temporal points. More... | |
PGDLLEXPORT Datum | overlaps_bbox_geo_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal boxes of the geometry/geography and the temporal point overlap. More... | |
PGDLLEXPORT Datum | overlaps_bbox_stbox_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box and the spatiotemporal box of the temporal point overlap. More... | |
PGDLLEXPORT Datum | overlaps_bbox_tpoint_geo (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal boxes of the temporal point and the geometry/geography overlap. More... | |
PGDLLEXPORT Datum | overlaps_bbox_tpoint_stbox (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the temporal point and the spatiotemporal box overlap. More... | |
PGDLLEXPORT Datum | overlaps_bbox_tpoint_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal boxes of the temporal points overlap. More... | |
PGDLLEXPORT Datum | contains_bbox_geo_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the geometry/geography contains the spatiotemporal box of the temporal point. More... | |
PGDLLEXPORT Datum | contains_bbox_stbox_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box contains the spatiotemporal box of the temporal point. More... | |
PGDLLEXPORT Datum | contains_bbox_tpoint_geo (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the temporal point contains the one of the geometry/geography. More... | |
PGDLLEXPORT Datum | contains_bbox_tpoint_stbox (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the temporal point contains the spatiotemporal box. More... | |
PGDLLEXPORT Datum | contains_bbox_tpoint_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the first temporal point contains the one of the second temporal point. More... | |
PGDLLEXPORT Datum | contained_bbox_geo_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the geometry/geography is contained in the spatiotemporal box of the temporal point. More... | |
PGDLLEXPORT Datum | contained_bbox_stbox_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box is contained in the spatiotemporal box of the temporal point. More... | |
PGDLLEXPORT Datum | contained_bbox_tpoint_geo (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the temporal point is contained in the one of the geometry/geography. More... | |
PGDLLEXPORT Datum | contained_bbox_tpoint_stbox (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the temporal point is contained in the spatiotemporal box. More... | |
PGDLLEXPORT Datum | contained_bbox_tpoint_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the first temporal point is contained in the one of the second temporal point. More... | |
PGDLLEXPORT Datum | same_bbox_geo_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal boxes of the geometry/geography and the temporal point are equal in the common dimensions. More... | |
PGDLLEXPORT Datum | same_bbox_stbox_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box and the spatiotemporal box of the temporal point are equal in the common dimensions. More... | |
PGDLLEXPORT Datum | same_bbox_tpoint_geo (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal boxes of the temporal point and geometry/geography are equal in the common dimensions. More... | |
PGDLLEXPORT Datum | same_bbox_tpoint_stbox (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the temporal point and the spatiotemporal box are equal in the common dimensions. More... | |
PGDLLEXPORT Datum | same_bbox_tpoint_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal boxes of the temporal points are equal in the common dimensions. More... | |
PGDLLEXPORT Datum | adjacent_bbox_geo_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal boxes of the geometry/geography and the temporal point are adjacent. More... | |
PGDLLEXPORT Datum | adjacent_bbox_stbox_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box and the spatiotemporal box of the temporal point are adjacent. More... | |
PGDLLEXPORT Datum | adjacent_bbox_tpoint_geo (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal boxes of the temporal point and geometry/geography are adjacent. More... | |
PGDLLEXPORT Datum | adjacent_bbox_tpoint_stbox (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal box of the temporal point and the spatiotemporal box are adjacent. More... | |
PGDLLEXPORT Datum | adjacent_bbox_tpoint_tpoint (PG_FUNCTION_ARGS) |
Returns true if the spatiotemporal boxes of the temporal points are adjacent. More... | |
Bounding box operators for temporal points.
These operators test the bounding boxes of temporal points, which are an STBOX
, where the x, y, and optional z coordinates are for the space (value) dimension and the t coordinate is for the time dimension. 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.