MobilityDB 1.1
Functions
stbox.c File Reference
#include "point/stbox.h"
#include <assert.h>
#include <lib/stringinfo.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/pg_types.h"
#include "general/set.h"
#include "general/type_out.h"
#include "general/type_util.h"
#include "point/tpoint_spatialfuncs.h"
#include "pg_general/temporal.h"
#include "pg_general/tnumber_mathfuncs.h"
#include "pg_point/postgis.h"
#include "pg_point/tpoint_spatialfuncs.h"
Include dependency graph for stbox.c:

Functions

PGDLLEXPORT Datum Above_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is strictly above of the second one. More...
 
PGDLLEXPORT Datum Adjacent_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the spatiotemporal boxes are adjacent. More...
 
PGDLLEXPORT Datum After_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is strictly after the second one. More...
 
PGDLLEXPORT Datum Back_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is strictly back of the second one. More...
 
PGDLLEXPORT Datum Before_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is strictly before the second one. More...
 
PGDLLEXPORT Datum Below_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is strictly below of the second one. More...
 
PGDLLEXPORT Datum Contained_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is contained by the second one. More...
 
PGDLLEXPORT Datum Contains_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box contains the second one. More...
 
PGDLLEXPORT Datum Front_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is strictly in front of the second one. More...
 
PGDLLEXPORT Datum Geo_period_to_stbox (PG_FUNCTION_ARGS)
 Transform a geometry/geography and a period to a spatiotemporal box. More...
 
PGDLLEXPORT Datum Geo_timestamp_to_stbox (PG_FUNCTION_ARGS)
 Transform a geometry/geography and a timestamp to a spatiotemporal box. More...
 
PGDLLEXPORT Datum Geo_to_stbox (PG_FUNCTION_ARGS)
 Transform a geometry/geography to a spatiotemporal box. More...
 
PGDLLEXPORT Datum Geodstbox_constructor_t (PG_FUNCTION_ARGS)
 Construct a spatiotemporal box from the arguments. More...
 
PGDLLEXPORT Datum Geodstbox_constructor_z (PG_FUNCTION_ARGS)
 Construct a spatiotemporal box from the arguments. More...
 
PGDLLEXPORT Datum Geodstbox_constructor_zt (PG_FUNCTION_ARGS)
 Construct a spatiotemporal box from the arguments. More...
 
PGDLLEXPORT Datum Intersection_stbox_stbox (PG_FUNCTION_ARGS)
 Return the intersection of the spatiotemporal boxes. More...
 
PGDLLEXPORT Datum Left_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is strictly to the left of the second one. More...
 
PGDLLEXPORT Datum Overabove_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box does not extend below of the second one. More...
 
PGDLLEXPORT Datum Overafter_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box does not extend before the second one. More...
 
PGDLLEXPORT Datum Overback_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box does not extend to the front of the second one. More...
 
PGDLLEXPORT Datum Overbefore_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first temporal box does not extend after the second one. More...
 
PGDLLEXPORT Datum Overbelow_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box does not extend above of the second one. More...
 
PGDLLEXPORT Datum Overfront_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box does not extend to the back of the second one. More...
 
PGDLLEXPORT Datum Overlaps_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the spatiotemporal boxes overlap. More...
 
PGDLLEXPORT Datum Overleft_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box does not extend to the right of the second one. More...
 
PGDLLEXPORT Datum Overright_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatio temporal box does not extend to the left of the second one. More...
 
PGDLLEXPORT Datum Period_to_stbox (PG_FUNCTION_ARGS)
 Transform a period to a spatiotemporal box. More...
 
void periodset_stbox_slice (Datum psdatum, STBox *box)
 Peak into a period set datum to find the bounding box. More...
 
PGDLLEXPORT Datum Periodset_to_stbox (PG_FUNCTION_ARGS)
 Transform a period set to a spatiotemporal box. More...
 
PGDLLEXPORT Datum Right_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is strictly to the right of the second one. More...
 
PGDLLEXPORT Datum Same_stbox_stbox (PG_FUNCTION_ARGS)
 Return true if the spatiotemporal boxes are equal on the common dimensions. More...
 
PGDLLEXPORT Datum Stbox_as_text (PG_FUNCTION_ARGS)
 Output function for spatiotemporal boxes. More...
 
PGDLLEXPORT Datum Stbox_cmp (PG_FUNCTION_ARGS)
 Return -1, 0, or 1 depending on whether the first spatiotemporal box is less than, equal, or greater than the second one. More...
 
PGDLLEXPORT Datum Stbox_constructor (PG_FUNCTION_ARGS)
 Construct a spatiotemporal box from the arguments. More...
 
static Datum stbox_constructor_ext (FunctionCallInfo fcinfo, bool hasx, bool hasz, bool hast, bool geodetic)
 Construct a spatiotemporal box from the arguments. More...
 
PGDLLEXPORT Datum Stbox_constructor_t (PG_FUNCTION_ARGS)
 Construct a spatiotemporal box from the arguments. More...
 
PGDLLEXPORT Datum Stbox_constructor_z (PG_FUNCTION_ARGS)
 Construct a spatiotemporal box from the arguments. More...
 
PGDLLEXPORT Datum Stbox_constructor_zt (PG_FUNCTION_ARGS)
 Construct a spatiotemporal box from the arguments. More...
 
PGDLLEXPORT Datum Stbox_eq (PG_FUNCTION_ARGS)
 Return true if the spatiotemporal boxes are equal. More...
 
PGDLLEXPORT Datum Stbox_expand_space (PG_FUNCTION_ARGS)
 Return a spatiotemporal box expanded in the spatial dimension of by a double. More...
 
PGDLLEXPORT Datum Stbox_expand_time (PG_FUNCTION_ARGS)
 Return a spatiotemporal box expanded in the temporal dimension by an interval. More...
 
PGDLLEXPORT Datum Stbox_extent_combinefn (PG_FUNCTION_ARGS)
 Combine function for extent aggregation for boxes. More...
 
PGDLLEXPORT Datum Stbox_extent_transfn (PG_FUNCTION_ARGS)
 Transition function for extent aggregation for boxes. More...
 
PGDLLEXPORT Datum Stbox_ge (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is greater than or equal to the second one. More...
 
PGDLLEXPORT Datum Stbox_get_srid (PG_FUNCTION_ARGS)
 Return the SRID of a spatiotemporal box. More...
 
PGDLLEXPORT Datum Stbox_gt (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is greater than the second one. More...
 
PGDLLEXPORT Datum Stbox_hast (PG_FUNCTION_ARGS)
 Return true if a spatiotemporal box has time dimension. More...
 
PGDLLEXPORT Datum Stbox_hasx (PG_FUNCTION_ARGS)
 Return true if a spatiotemporal box has value dimension. More...
 
PGDLLEXPORT Datum Stbox_hasz (PG_FUNCTION_ARGS)
 Return true if a spatiotemporal box has Z dimension. More...
 
PGDLLEXPORT Datum Stbox_in (PG_FUNCTION_ARGS)
 Input function for spatiotemporal boxes. More...
 
PGDLLEXPORT Datum Stbox_isgeodetic (PG_FUNCTION_ARGS)
 Return true if a spatiotemporal box is geodetic. More...
 
PGDLLEXPORT Datum Stbox_le (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is less than or equal to the second one. More...
 
PGDLLEXPORT Datum Stbox_lt (PG_FUNCTION_ARGS)
 Return true if the first spatiotemporal box is less than the second one. More...
 
PGDLLEXPORT Datum Stbox_ne (PG_FUNCTION_ARGS)
 Return true if the spatiotemporal boxes are different. More...
 
PGDLLEXPORT Datum Stbox_out (PG_FUNCTION_ARGS)
 Output function for spatiotemporal boxes. More...
 
PGDLLEXPORT Datum Stbox_recv (PG_FUNCTION_ARGS)
 Receive function for STBox. More...
 
static STBoxstbox_round (const STBox *box, Datum prec)
 Sets the precision of the coordinates of the spatiotemporal box. More...
 
PGDLLEXPORT Datum Stbox_round (PG_FUNCTION_ARGS)
 Sets the precision of the coordinates of a spatiotemporal box. More...
 
PGDLLEXPORT Datum Stbox_send (PG_FUNCTION_ARGS)
 Send function for STBox. More...
 
PGDLLEXPORT Datum Stbox_set_srid (PG_FUNCTION_ARGS)
 Sets the SRID of a spatiotemporal box. More...
 
PGDLLEXPORT Datum Stbox_tmax (PG_FUNCTION_ARGS)
 Return the maximum T value of a spatiotemporal box, if any. More...
 
PGDLLEXPORT Datum Stbox_tmin (PG_FUNCTION_ARGS)
 Return the minimum T value of a spatiotemporal box, if any. More...
 
PGDLLEXPORT Datum Stbox_to_geo (PG_FUNCTION_ARGS)
 Cast the spatiotemporal box as a PostGIS GBOX. More...
 
PGDLLEXPORT Datum Stbox_to_period (PG_FUNCTION_ARGS)
 Cast a spatiotemporal box as a period. More...
 
static STBoxstbox_transform (const STBox *box, int32 srid)
 Transform a spatiotemporal box into another spatial reference system. More...
 
PGDLLEXPORT Datum Stbox_transform (PG_FUNCTION_ARGS)
 Transform a spatiotemporal box into another spatial reference system. More...
 
PGDLLEXPORT Datum Stbox_xmax (PG_FUNCTION_ARGS)
 Return the maximum X value of a spatiotemporal box, if any. More...
 
PGDLLEXPORT Datum Stbox_xmin (PG_FUNCTION_ARGS)
 Return the minimum X value of a spatiotemporal box, if any. More...
 
PGDLLEXPORT Datum Stbox_ymax (PG_FUNCTION_ARGS)
 Return the maximum Y value of a spatiotemporal box, if any. More...
 
PGDLLEXPORT Datum Stbox_ymin (PG_FUNCTION_ARGS)
 Return the minimum Y value of a spatiotemporal box, if any. More...
 
PGDLLEXPORT Datum Stbox_zmax (PG_FUNCTION_ARGS)
 Return the maximum Z value of a spatiotemporal box, if any. More...
 
PGDLLEXPORT Datum Stbox_zmin (PG_FUNCTION_ARGS)
 Return the minimum Z value of a spatiotemporal box, if any. More...
 
PGDLLEXPORT Datum Timestamp_to_stbox (PG_FUNCTION_ARGS)
 Transform a timestampt to a spatiotemporal box. More...
 
PGDLLEXPORT Datum Tstzset_to_stbox (PG_FUNCTION_ARGS)
 Transform a timestamp set to a spatiotemporal box. More...
 
PGDLLEXPORT Datum Union_stbox_stbox (PG_FUNCTION_ARGS)
 Return the union of the spatiotemporal boxes. More...