![]() |
MobilityDB 1.3
|
Functions for spatiotemporal bounding boxes. More...
#include "geo/stbox.h"
#include <assert.h>
#include <float.h>
#include <postgres.h>
#include <lib/stringinfo.h>
#include <meos.h>
#include <meos_internal.h>
#include <meos_internal_geo.h>
#include "temporal/set.h"
#include "temporal/span.h"
#include "temporal/type_inout.h"
#include "temporal/type_util.h"
#include "geo/tgeo.h"
#include "geo/tgeo_spatialfuncs.h"
#include "geo/tspatial_parser.h"
#include "pg_temporal/meos_catalog.h"
#include "pg_temporal/temporal.h"
#include "pg_temporal/type_util.h"
#include "pg_geo/postgis.h"
Functions | |
Datum | Above_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is above of the second one @sqlfn temporal_below() More... | |
Datum | Adjacent_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if two spatiotemporal boxes are adjacent @sqlfn stbox_adjacent() More... | |
Datum | After_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is after the second one @sqlfn temporal_below() More... | |
Datum | Back_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is at the back of the second one @sqlfn temporal_below() More... | |
Datum | Before_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is before the second one @sqlfn temporal_below() More... | |
Datum | Below_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is below the second one @sqlfn temporal_below() More... | |
Datum | Box2d_to_stbox (PG_FUNCTION_ARGS) |
Convert a PostGIS box2d into a spatiotemporal box @sqlfn stbox() More... | |
Datum | Box3d_to_stbox (PG_FUNCTION_ARGS) |
Convert a PostGIS box3d into a spatiotemporal box @sqlfn stbox() More... | |
Datum | Contained_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is contained in the second one @sqlfn stbox_contained() More... | |
Datum | Contains_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box contains the second one @sqlfn stbox_contains() More... | |
Datum | Front_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is in front of the second one @sqlfn temporal_below() More... | |
Datum | Geo_timestamptz_to_stbox (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from a geometry/geography and a timestamptz @sqlfn stbox() More... | |
Datum | Geo_to_stbox (PG_FUNCTION_ARGS) |
Convert a geometry/geography into a spatiotemporal box @sqlfn stbox() More... | |
Datum | Geo_tstzspan_to_stbox (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from a geometry/geography and a timestamptz span @sqlfn stbox() More... | |
Datum | Geodstbox_constructor_t (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from the arguments @sqlfn geodstbox_t() More... | |
Datum | Geodstbox_constructor_z (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from the arguments @sqlfn geodstbox_z() More... | |
Datum | Geodstbox_constructor_zt (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from the arguments @sqlfn geodstbox_zt() More... | |
Datum | Intersection_stbox_stbox (PG_FUNCTION_ARGS) |
Return the intersection of two spatiotemporal boxes @sqlfn stbox_intersection() More... | |
Datum | Left_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is to the left of the second one @sqlfn temporal_below() More... | |
Datum | Overabove_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box does not extend below of the second one @sqlfn temporal_below() More... | |
Datum | Overafter_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first temporal box is not before the second one @sqlfn temporal_below() More... | |
Datum | Overback_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box does not extend to the front of the second one @sqlfn temporal_below() More... | |
Datum | Overbefore_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first temporal box is not after the second one @sqlfn temporal_below() More... | |
Datum | Overbelow_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box does not extend above of the second one @sqlfn temporal_below() More... | |
Datum | Overfront_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box does not extend to the back of the second one @sqlfn temporal_below() More... | |
Datum | Overlaps_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if two spatiotemporal boxes overlap @sqlfn stbox_overlaps() More... | |
Datum | Overleft_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box does not extend to the right of the second one @sqlfn temporal_below() More... | |
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 @sqlfn temporal_below() More... | |
Datum | Right_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is to the right of the second one @sqlfn temporal_below() More... | |
Datum | Same_stbox_stbox (PG_FUNCTION_ARGS) |
Return true if two spatiotemporal boxes are equal in the common dimensions @sqlfn stbox_same() More... | |
Datum | Stbox_area (PG_FUNCTION_ARGS) |
Return the area of a spatiotemporal box @sqlfn area() More... | |
Datum | Stbox_as_hexwkb (PG_FUNCTION_ARGS) |
Return the ASCII hex-encoded Well-Known Binary (HexWKB) representation of a spatiotemporal box @sqlfn asHexWKB() More... | |
Datum | Stbox_as_text (PG_FUNCTION_ARGS) |
Return the Well-Known Text (WKT) representation of a spatiotemporal box @sqlfn asText() More... | |
Datum | Stbox_as_wkb (PG_FUNCTION_ARGS) |
Return the Well-Known Binary (WKB) representation of a spatiotemporal box @sqlfn asBinary() More... | |
Datum | Stbox_cmp (PG_FUNCTION_ARGS) |
Return -1, 0, or 1 depending on whether the first spatiotemporal box is less than, equal to, or greater than the second one @sqlfn stbox_cmp() More... | |
static Datum | Stbox_constructor (FunctionCallInfo fcinfo, bool hasx, bool hasz, bool hast, bool geodetic) |
Return a spatiotemporal box constructed from the arguments. More... | |
Datum | Stbox_constructor_t (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from the arguments @sqlfn stbox_t() More... | |
Datum | Stbox_constructor_x (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from the arguments @sqlfn stbox() More... | |
Datum | Stbox_constructor_xt (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from the arguments @sqlfn stbox_xt() More... | |
Datum | Stbox_constructor_z (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from the arguments @sqlfn stbox_z() More... | |
Datum | Stbox_constructor_zt (PG_FUNCTION_ARGS) |
Return a spatiotemporal box constructed from the arguments @sqlfn stbox_zt() More... | |
Datum | Stbox_eq (PG_FUNCTION_ARGS) |
Return true if two spatiotemporal boxes are equal @sqlfn stbox_eq() More... | |
Datum | Stbox_expand_space (PG_FUNCTION_ARGS) |
Return a spatiotemporal box with the space bounds expanded/shrinked by a double @sqlfn expandSpace() More... | |
Datum | Stbox_expand_time (PG_FUNCTION_ARGS) |
Return a spatiotemporal box with the time span expanded/shrinked by an interval @sqlfn Stbox_expand_time() More... | |
Datum | Stbox_extent_combinefn (PG_FUNCTION_ARGS) |
Combine function for extent aggregation of spatiotemporal boxes. More... | |
Datum | Stbox_extent_transfn (PG_FUNCTION_ARGS) |
Transition function for extent aggregation of spatiotemporal boxes. More... | |
Datum | Stbox_from_hexwkb (PG_FUNCTION_ARGS) |
Return a spatiotemporal box from its ASCII hex-encoded Well-Known Binary (HexWKB) representation @sqlfn stboxFromHexWKB() More... | |
Datum | Stbox_from_wkb (PG_FUNCTION_ARGS) |
Return a spatiotemporal box from its Well-Known Binary (WKB) representation @sqlfn stboxFromBinary() More... | |
Datum | Stbox_ge (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is greater than or equal to the second one @sqlfn stbox_ge() More... | |
Datum | Stbox_get_space (PG_FUNCTION_ARGS) |
Return a spatiotemporal box with only the space bounds @sqlfn getSpace() More... | |
Datum | Stbox_gt (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is greater than the second one @sqlfn stbox_gt() More... | |
Datum | Stbox_hast (PG_FUNCTION_ARGS) |
Return true if a spatiotemporal box has time dimension @sqlfn hasT() More... | |
Datum | Stbox_hasx (PG_FUNCTION_ARGS) |
Return true if a spatiotemporal box has value dimension @sqlfn hasX() More... | |
Datum | Stbox_hasz (PG_FUNCTION_ARGS) |
Return true if a spatiotemporal box has Z dimension @sqlfn hasZ() More... | |
Datum | Stbox_in (PG_FUNCTION_ARGS) |
Return a spatiotemporal box from its Well-Known Text (WKT) representation @sqlfn stbox_in() More... | |
Datum | Stbox_isgeodetic (PG_FUNCTION_ARGS) |
Return true if a spatiotemporal box is geodetic @sqlfn isGeodetic() More... | |
Datum | Stbox_le (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is less than or equal to the second one @sqlfn stbox_le() More... | |
Datum | Stbox_lt (PG_FUNCTION_ARGS) |
Return true if the first spatiotemporal box is less than the second one @sqlfn stbox_lt() More... | |
Datum | Stbox_ne (PG_FUNCTION_ARGS) |
Return true if two spatiotemporal boxes are different @sqlfn stbox_ne() More... | |
Datum | Stbox_out (PG_FUNCTION_ARGS) |
Return the Well-Known Text (WKT) representation of a spatiotemporal box @sqlfn stbox_out() More... | |
Datum | Stbox_perimeter (PG_FUNCTION_ARGS) |
Return the area of a spatiotemporal box @sqlfn area() More... | |
Datum | Stbox_quad_split (PG_FUNCTION_ARGS) |
Return a spatiotemporal box split with respect to its space bounds in four quadrants (2D) or eight octants (3D) @sqlfn stbox_intersection() More... | |
Datum | Stbox_recv (PG_FUNCTION_ARGS) |
Return a spatiotemporal box from its Well-Known Binary (WKB) representation @sqlfn stbox_recv() More... | |
Datum | Stbox_round (PG_FUNCTION_ARGS) |
Return a spatiotemporal box with the precision of the space bounds set to a number of decimal values @sqlfn round() More... | |
Datum | Stbox_scale_time (PG_FUNCTION_ARGS) |
Return a spatiotemporal box with the time span scaled by an interval @sqlfn scaleTime() More... | |
Datum | Stbox_send (PG_FUNCTION_ARGS) |
Return the Well-Known Binary (WKB) representation of a spatiotemporal box @sqlfn stbox_send() More... | |
Datum | Stbox_set_srid (PG_FUNCTION_ARGS) |
Return a spatiotemporal box with the coordinates set to an SRID @sqlfn setSRID() More... | |
Datum | Stbox_shift_scale_time (PG_FUNCTION_ARGS) |
Return a spatiotemporal box with the time span shifted and scaled by two intervals @sqlfn shiftScaleTime() More... | |
Datum | Stbox_shift_time (PG_FUNCTION_ARGS) |
Return a spatiotemporal box with the time span shifted by an interval @sqlfn shiftTime() More... | |
Datum | Stbox_srid (PG_FUNCTION_ARGS) |
Return the SRID of a spatiotemporal box @sqlfn SRID() More... | |
Datum | Stbox_tmax (PG_FUNCTION_ARGS) |
Return the maximum T value of a spatiotemporal box, if any @sqlfn Tmax() More... | |
Datum | Stbox_tmax_inc (PG_FUNCTION_ARGS) |
Return true if the maximum timestamptz value of a spatiotemporal box is inclusive, if any @sqlfn Tmax_inc() More... | |
Datum | Stbox_tmin (PG_FUNCTION_ARGS) |
Return the minimum timestamptz value of a spatiotemporal box, if any @sqlfn Tmin() More... | |
Datum | Stbox_tmin_inc (PG_FUNCTION_ARGS) |
Return true if the minimum timestamptz value of a spatiotemporal box is inclusive, if any @sqlfn Tmin_inc() More... | |
Datum | Stbox_to_box2d (PG_FUNCTION_ARGS) |
Convert a spatiotemporal box into a PostGIS box2d @sqlfn box2d() More... | |
Datum | Stbox_to_box3d (PG_FUNCTION_ARGS) |
Convert a spatiotemporal box into a PostGIS box3d @sqlfn box3d() More... | |
Datum | Stbox_to_geo (PG_FUNCTION_ARGS) |
Convert a spatiotemporal box into a PostGIS geometry/geography @sqlfn geometry() More... | |
Datum | Stbox_to_tstzspan (PG_FUNCTION_ARGS) |
Convert a spatiotemporal box into a timestamptz span @sqlfn timeSpan() More... | |
Datum | Stbox_transform (PG_FUNCTION_ARGS) |
Return a spatiotemporal box transformed to an SRID @sqlfn transform() More... | |
Datum | Stbox_transform_pipeline (PG_FUNCTION_ARGS) |
Return a spatiotemporal box transformed to an SRID using a pipeline @sqlfn transformPipeline() More... | |
Datum | Stbox_volume (PG_FUNCTION_ARGS) |
Return the volume of a 3D spatiotemporal box @sqlfn volume() More... | |
Datum | Stbox_xmax (PG_FUNCTION_ARGS) |
Return the maximum X value of a spatiotemporal box, if any @sqlfn Xmax() More... | |
Datum | Stbox_xmin (PG_FUNCTION_ARGS) |
Return the minimum X value of a spatiotemporal box, if any @sqlfn Xmin() More... | |
Datum | Stbox_ymax (PG_FUNCTION_ARGS) |
Return the maximum Y value of a spatiotemporal box, if any @sqlfn Ymax() More... | |
Datum | Stbox_ymin (PG_FUNCTION_ARGS) |
Return the minimum Y value of a spatiotemporal box, if any @sqlfn Ymin() More... | |
Datum | Stbox_zmax (PG_FUNCTION_ARGS) |
Return the maximum Z value of a spatiotemporal box, if any @sqlfn Zmax() More... | |
Datum | Stbox_zmin (PG_FUNCTION_ARGS) |
Return the minimum Z value of a spatiotemporal box, if any @sqlfn Zmin() More... | |
Datum | Stboxarr_round (PG_FUNCTION_ARGS) |
Return an array of temporal points with the precision of the coordinates set to a number of decimal places @sqlfn round() More... | |
Datum | Timestamptz_to_stbox (PG_FUNCTION_ARGS) |
Convert a timestamptz into a spatiotemporal box @sqlfn stbox() More... | |
void | tstzset_stbox_slice (Datum sdatum, STBox *box) |
Peek into a set datum to find the bounding box. More... | |
Datum | Tstzset_to_stbox (PG_FUNCTION_ARGS) |
Convert a timestamptz set into a spatiotemporal box @sqlfn stbox() More... | |
Datum | Tstzspan_to_stbox (PG_FUNCTION_ARGS) |
Convert a timestamptz span into a spatiotemporal box @sqlfn stbox() More... | |
void | tstzspanset_stbox_slice (Datum ssdatum, STBox *box) |
Peek into a span set datum to find the bounding box. More... | |
Datum | Tstzspanset_to_stbox (PG_FUNCTION_ARGS) |
Convert a timestamptz span set into a spatiotemporal box @sqlfn stbox() More... | |
Datum | Union_stbox_stbox (PG_FUNCTION_ARGS) |
Return the union of two spatiotemporal boxes @sqlfn stbox_union() More... | |
Functions for spatiotemporal bounding boxes.