MobilityDB  1.0
Functions
tnpoint_boxops.c File Reference

Bounding box operators for temporal network points. More...

#include "npoint/tnpoint_boxops.h"
#include <utils/timestamp.h>
#include "general/temporaltypes.h"
#include "general/temporal_util.h"
#include "point/stbox.h"
#include "point/tpoint_boxops.h"
#include "point/tpoint_spatialfuncs.h"
#include "npoint/tnpoint.h"
#include "npoint/tnpoint_static.h"
#include "npoint/tnpoint_spatialfuncs.h"
Include dependency graph for tnpoint_boxops.c:

Functions

bool npoint_to_stbox_internal (STBOX *box, const npoint *np)
 Set the spatiotemporal box from the network point value. More...
 
void tnpointinst_make_stbox (STBOX *box, const TInstant *inst)
 Set the spatiotemporal box from the network point value. More...
 
void tnpointinstarr_step_to_stbox (STBOX *box, const TInstant **instants, int count)
 Set the spatiotemporal box from the array of temporal network point values. More...
 
void tnpointinstarr_linear_to_stbox (STBOX *box, const TInstant **instants, int count)
 Set the spatiotemporal box from the array of temporal network point values. More...
 
void tnpointseqarr_to_stbox (STBOX *box, const TSequence **sequences, int count)
 Set the spatiotemporal box from the array of temporal network point values. More...
 
PGDLLEXPORT Datum npoint_to_stbox (PG_FUNCTION_ARGS)
 Returns the bounding box of the network point value. More...
 
bool nsegment_to_stbox_internal (STBOX *box, const nsegment *ns)
 Returns the bounding box of the network segment value. More...
 
PGDLLEXPORT Datum nsegment_to_stbox (PG_FUNCTION_ARGS)
 Returns the bounding box of the network segment value. More...
 
static bool npoint_timestamp_to_stbox_internal (STBOX *box, const npoint *np, TimestampTz t)
 Transform a network point and a timestamp to a spatiotemporal box. More...
 
PGDLLEXPORT Datum npoint_timestamp_to_stbox (PG_FUNCTION_ARGS)
 Transform a network point and a timestamp to a spatiotemporal box. More...
 
static bool npoint_period_to_stbox_internal (STBOX *box, const npoint *np, const Period *p)
 Transform a network point and a period to a spatiotemporal box. More...
 
PGDLLEXPORT Datum npoint_period_to_stbox (PG_FUNCTION_ARGS)
 Transform a network point and a period to a spatiotemporal box. More...
 
PGDLLEXPORT Datum tnpoint_to_stbox (PG_FUNCTION_ARGS)
 Transform a temporal network point to a spatiotemporal box. More...
 
Datum boxop_npoint_tnpoint (FunctionCallInfo fcinfo, bool(*func)(const STBOX *, const STBOX *))
 Generic box function for a static and a temporal network point. More...
 
Datum boxop_tnpoint_npoint (FunctionCallInfo fcinfo, bool(*func)(const STBOX *, const STBOX *))
 Generic box function for a temporal and a static network point. More...
 
PGDLLEXPORT Datum overlaps_bbox_geo_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the geometry and the temporal network point overlap. More...
 
PGDLLEXPORT Datum overlaps_bbox_stbox_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box and the spatiotemporal box of the temporal network point overlap. More...
 
PGDLLEXPORT Datum overlaps_bbox_npoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the network point and the temporal network point overlap. More...
 
PGDLLEXPORT Datum overlaps_bbox_tnpoint_geo (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the temporal network point and the geometry overlap. More...
 
PGDLLEXPORT Datum overlaps_bbox_tnpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the temporal network point and the spatiotemporal box overlap. More...
 
PGDLLEXPORT Datum overlaps_bbox_tnpoint_npoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the temporal network point and the network point overlap. More...
 
PGDLLEXPORT Datum overlaps_bbox_tnpoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the temporal network points overlap. More...
 
PGDLLEXPORT Datum contains_bbox_geo_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the geometry contains the one of the temporal network point. More...
 
PGDLLEXPORT Datum contains_bbox_stbox_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box contains the one of the temporal network point. More...
 
PGDLLEXPORT Datum contains_bbox_npoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the network point contains the one of the temporal network point. More...
 
PGDLLEXPORT Datum contains_bbox_tnpoint_geo (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the temporal network point contain the one of the geometry. More...
 
PGDLLEXPORT Datum contains_bbox_tnpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the temporal network point contain the spatiotemporal box. More...
 
PGDLLEXPORT Datum contains_bbox_tnpoint_npoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the temporal network point contain the one of the network point. More...
 
PGDLLEXPORT Datum contains_bbox_tnpoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the first temporal network point contain the one of the second temporal network point. More...
 
PGDLLEXPORT Datum contained_bbox_geo_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the geometry is contained by the one of the temporal network point. More...
 
PGDLLEXPORT Datum contained_bbox_stbox_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box is contained by the one of the temporal network point. More...
 
PGDLLEXPORT Datum contained_bbox_npoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the network point is contained by the one of the temporal network point. More...
 
PGDLLEXPORT Datum contained_bbox_tnpoint_geo (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the temporal network point is contained by the one of the geometry. More...
 
PGDLLEXPORT Datum contained_bbox_tnpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the temporal network point is contained by the spatiotemporal box. More...
 
PGDLLEXPORT Datum contained_bbox_tnpoint_npoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the temporal network point is contained by the one of the network point. More...
 
PGDLLEXPORT Datum contained_bbox_tnpoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the first temporal network point is contained by the one of the second temporal network point. More...
 
PGDLLEXPORT Datum same_bbox_geo_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the geometry and the temporal network point are equal in the common dimensions. More...
 
PGDLLEXPORT Datum same_bbox_stbox_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box and the spatiotemporal box of the temporal network point are equal in the common dimensions. More...
 
PGDLLEXPORT Datum same_bbox_npoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the network point and the temporal network point are equal in the common dimensions. More...
 
PGDLLEXPORT Datum same_bbox_tnpoint_geo (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the temporal network point and the geometry are equal in the common dimensions. More...
 
PGDLLEXPORT Datum same_bbox_tnpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the temporal network point and the spatiotemporal box are equal in the common dimensions. More...
 
PGDLLEXPORT Datum same_bbox_tnpoint_npoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the temporal network point and the network point are equal in the common dimensions. More...
 
PGDLLEXPORT Datum same_bbox_tnpoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the temporal network points are equal in the common dimensions. More...
 
PGDLLEXPORT Datum adjacent_bbox_geo_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the geometry and the temporal network point are adjacent. More...
 
PGDLLEXPORT Datum adjacent_bbox_stbox_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box and the spatiotemporal box of the temporal network point are adjacent. More...
 
PGDLLEXPORT Datum adjacent_bbox_npoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the network point and the temporal network point are adjacent. More...
 
PGDLLEXPORT Datum adjacent_bbox_tnpoint_geo (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the temporal network point and the geometry are adjacent. More...
 
PGDLLEXPORT Datum adjacent_bbox_tnpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box of the temporal network point and the spatiotemporal box are adjacent. More...
 
PGDLLEXPORT Datum adjacent_bbox_tnpoint_npoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the temporal network point and the network point are adjacent. More...
 
PGDLLEXPORT Datum adjacent_bbox_tnpoint_tnpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal boxes of the temporal network points are adjacent. More...
 

Detailed Description

Bounding box operators for temporal network points.

These operators test the bounding boxes of temporal npoints, 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.