MobilityDB  1.0
Functions
tpoint_posops.c File Reference

Relative position operators for temporal geometry points. More...

#include "point/tpoint_posops.h"
#include <assert.h>
#include "point/postgis.h"
#include "point/tpoint.h"
#include "point/tpoint_spatialfuncs.h"
#include "point/tpoint_boxops.h"
Include dependency graph for tpoint_posops.c:

Functions

PGDLLEXPORT Datum left_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry is strictly to the left of the temporal point. More...
 
PGDLLEXPORT Datum overleft_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry does not extend to the right of the temporal point. More...
 
PGDLLEXPORT Datum right_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry is strictly to the right of the temporal point. More...
 
PGDLLEXPORT Datum overright_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry does not extend to the left of the temporal point. More...
 
PGDLLEXPORT Datum below_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry is strictly below the temporal point. More...
 
PGDLLEXPORT Datum overbelow_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry does not extend above the temporal point. More...
 
PGDLLEXPORT Datum above_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry is strictly above the temporal point. More...
 
PGDLLEXPORT Datum overabove_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry does not extend below the temporal point. More...
 
PGDLLEXPORT Datum front_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry is strictly in front of the temporal point. More...
 
PGDLLEXPORT Datum overfront_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry does not extend to the back of the temporal point. More...
 
PGDLLEXPORT Datum back_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry is strictly back of the temporal point. More...
 
PGDLLEXPORT Datum overback_geom_tpoint (PG_FUNCTION_ARGS)
 Returns true if the geometry does not extend to the front of the temporal point. More...
 
PGDLLEXPORT Datum left_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly to the left of the geometry. More...
 
PGDLLEXPORT Datum overleft_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend to the right of the geometry. More...
 
PGDLLEXPORT Datum right_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly to the right of the geometry. More...
 
PGDLLEXPORT Datum overright_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend to the left of the geometry. More...
 
PGDLLEXPORT Datum below_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly below the geometry. More...
 
PGDLLEXPORT Datum overbelow_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend above the geometry. More...
 
PGDLLEXPORT Datum above_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly above the geometry. More...
 
PGDLLEXPORT Datum overabove_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend below the geometry. More...
 
PGDLLEXPORT Datum front_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly in front of the geometry. More...
 
PGDLLEXPORT Datum overfront_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend to the back of the geometry. More...
 
PGDLLEXPORT Datum back_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly back of the geometry. More...
 
PGDLLEXPORT Datum overback_tpoint_geom (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend to the front of the geometry. More...
 
PGDLLEXPORT Datum left_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box is strictly to the left of the temporal point. More...
 
PGDLLEXPORT Datum overleft_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box does not extend to the right of the temporal point. More...
 
PGDLLEXPORT Datum right_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box is strictly to the right of the temporal point. More...
 
PGDLLEXPORT Datum overright_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box does not extend to the left of the temporal point. More...
 
PGDLLEXPORT Datum below_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box is strictly below the temporal point. More...
 
PGDLLEXPORT Datum overbelow_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box does not extend above the temporal point. More...
 
PGDLLEXPORT Datum above_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box is strictly above the temporal point. More...
 
PGDLLEXPORT Datum overabove_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box does not extend below the temporal point. More...
 
PGDLLEXPORT Datum front_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box is strictly in front of the temporal point. More...
 
PGDLLEXPORT Datum overfront_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box does not extend to the back of the temporal point. More...
 
PGDLLEXPORT Datum back_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box is strictly back of the temporal point. More...
 
PGDLLEXPORT Datum overback_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box does not extend to the front of the temporal point. More...
 
PGDLLEXPORT Datum before_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box is strictly before the temporal point. More...
 
PGDLLEXPORT Datum overbefore_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box does not extend after the temporal point. More...
 
PGDLLEXPORT Datum after_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box is strictly after the temporal point. More...
 
PGDLLEXPORT Datum overafter_stbox_tpoint (PG_FUNCTION_ARGS)
 Returns true if the spatiotemporal box does not extend before the temporal point. More...
 
PGDLLEXPORT Datum left_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly to the left of the spatiotemporal box. More...
 
PGDLLEXPORT Datum overleft_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend to the right of the spatiotemporal box. More...
 
PGDLLEXPORT Datum right_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly to the right of the spatiotemporal box. More...
 
PGDLLEXPORT Datum overright_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend to the left of the spatiotemporal box. More...
 
PGDLLEXPORT Datum below_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly below the spatiotemporal box. More...
 
PGDLLEXPORT Datum overbelow_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend above the spatiotemporal box. More...
 
PGDLLEXPORT Datum above_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly above the spatiotemporal box. More...
 
PGDLLEXPORT Datum overabove_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend below the spatiotemporal box. More...
 
PGDLLEXPORT Datum front_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly in front of the spatiotemporal box. More...
 
PGDLLEXPORT Datum overfront_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend to the back of the spatiotemporal box. More...
 
PGDLLEXPORT Datum back_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly back of the spatiotemporal box. More...
 
PGDLLEXPORT Datum overback_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend to the front of the spatiotemporal box. More...
 
PGDLLEXPORT Datum before_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly before the spatiotemporal box. More...
 
PGDLLEXPORT Datum overbefore_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend after the spatiotemporal box. More...
 
PGDLLEXPORT Datum after_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point is strictly after the spatiotemporal box. More...
 
PGDLLEXPORT Datum overafter_tpoint_stbox (PG_FUNCTION_ARGS)
 Returns true if the temporal point does not extend before the spatiotemporal box. More...
 
PGDLLEXPORT Datum left_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point is strictly to the left of the second one. More...
 
PGDLLEXPORT Datum overleft_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point does not extend to the right of the second one. More...
 
PGDLLEXPORT Datum right_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point is strictly to the right of the second one. More...
 
PGDLLEXPORT Datum overright_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point does not extend to the left of the second one. More...
 
PGDLLEXPORT Datum below_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point is strictly below the second one. More...
 
PGDLLEXPORT Datum overbelow_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point does not extend above the second one. More...
 
PGDLLEXPORT Datum above_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point is strictly above the second one. More...
 
PGDLLEXPORT Datum overabove_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point does not extend below the second one. More...
 
PGDLLEXPORT Datum front_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point is strictly in front of the second one. More...
 
PGDLLEXPORT Datum overfront_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point does not extend to the back of the second one. More...
 
PGDLLEXPORT Datum back_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point is strictly back of the second one. More...
 
PGDLLEXPORT Datum overback_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point does not extend to the front of the second one. More...
 
PGDLLEXPORT Datum before_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point is strictly before the second one. More...
 
PGDLLEXPORT Datum overbefore_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point does not extend after the second one. More...
 
PGDLLEXPORT Datum after_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point is strictly after the second one. More...
 
PGDLLEXPORT Datum overafter_tpoint_tpoint (PG_FUNCTION_ARGS)
 Returns true if the first temporal point does not extend before the second one. More...
 

Detailed Description

Relative position operators for temporal geometry points.

The following operators are defined for the spatial dimension: left, overleft, right, overright, below, overbelow, above, overabove, front, overfront, back, overback. There are no equivalent operators for the temporal geography points since PostGIS does not currently provide such functionality for geography.

The following operators are defined for for the time dimension: before, overbefore, after, overafter. For both temporal geometry and geography points the same operators are derived from the basic temporal types. In this file they are defined when one of the arguments is an STBOX.