MobilityDB 1.3
Loading...
Searching...
No Matches
tcbuffer_spatialrels.h
Go to the documentation of this file.
1/*****************************************************************************
2 *
3 * This MobilityDB code is provided under The PostgreSQL License.
4 * Copyright (c) 2016-2025, Université libre de Bruxelles and MobilityDB
5 * contributors
6 *
7 * MobilityDB includes portions of PostGIS version 3 source code released
8 * under the GNU General Public License (GPLv2 or later).
9 * Copyright (c) 2001-2025, PostGIS contributors
10 *
11 * Permission to use, copy, modify, and distribute this software and its
12 * documentation for any purpose, without fee, and without a written
13 * agreement is hereby granted, provided that the above copyright notice and
14 * this paragraph and the following two paragraphs appear in all copies.
15 *
16 * IN NO EVENT SHALL UNIVERSITE LIBRE DE BRUXELLES BE LIABLE TO ANY PARTY FOR
17 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
18 * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
19 * EVEN IF UNIVERSITE LIBRE DE BRUXELLES HAS BEEN ADVISED OF THE POSSIBILITY
20 * OF SUCH DAMAGE.
21 *
22 * UNIVERSITE LIBRE DE BRUXELLES SPECIFICALLY DISCLAIMS ANY WARRANTIES,
23 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
24 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON
25 * AN "AS IS" BASIS, AND UNIVERSITE LIBRE DE BRUXELLES HAS NO OBLIGATIONS TO
26 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
27 *
28 *****************************************************************************/
29
34#ifndef __TCBUFFER_SPATIALRELS_H__
35#define __TCBUFFER_SPATIALRELS_H__
36
37/* PostgreSQL */
38#include <postgres.h>
39/* MEOS */
40#include "temporal/temporal.h"
41#include "cbuffer/cbuffer.h"
42
43/*****************************************************************************/
44
46 const Temporal *temp, bool ever);
47extern int ea_contains_tcbuffer_geo(const Temporal *temp,
48 const GSERIALIZED *gs, bool ever);
49extern int ea_contains_tcbuffer_cbuffer(const Temporal *temp,
50 const Cbuffer *cb, bool ever);
51extern int ea_contains_cbuffer_tcbuffer(const Cbuffer *cb,
52 const Temporal *temp, bool ever);
53// extern int ea_contains_tcbuffer_tcbuffer(const Temporal *temp1,
54// const Temporal *temp2, bool ever);
55
56extern int ea_covers_geo_tcbuffer(const GSERIALIZED *gs,
57 const Temporal *temp, bool ever);
58extern int ea_covers_tcbuffer_geo(const Temporal *temp,
59 const GSERIALIZED *gs, bool ever);
60extern int ea_covers_tcbuffer_cbuffer(const Temporal *temp,
61 const Cbuffer *cb, bool ever);
62extern int ea_covers_cbuffer_tcbuffer(const Cbuffer *cb,
63 const Temporal *temp, bool ever);
64extern int ea_covers_tcbuffer_tcbuffer(const Temporal *temp1,
65 const Temporal *temp2, bool ever);
66
67extern int ea_disjoint_tcbuffer_geo(const Temporal *temp,
68 const GSERIALIZED *gs, bool ever);
70 const Temporal *temp, bool ever);
71extern int ea_disjoint_tcbuffer_cbuffer(const Temporal *temp,
72 const Cbuffer *cb, bool ever);
73extern int ea_disjoint_cbuffer_tcbuffer(const Cbuffer *cb,
74 const Temporal *temp, bool ever);
75extern int ea_disjoint_tcbuffer_tcbuffer(const Temporal *temp1,
76 const Temporal *temp2, bool ever);
77
78extern int ea_intersects_tcbuffer_geo(const Temporal *temp,
79 const GSERIALIZED *gs, bool ever);
81 const Temporal *temp, bool ever);
82extern int ea_intersects_tcbuffer_cbuffer(const Temporal *temp,
83 const Cbuffer *cb, bool ever);
84extern int ea_intersects_cbuffer_tcbuffer(const Cbuffer *cb,
85 const Temporal *temp, bool ever);
86extern int ea_intersects_tcbuffer_tcbuffer(const Temporal *temp1,
87 const Temporal *temp2, bool ever);
88
89extern int ea_touches_tcbuffer_geo(const Temporal *temp,
90 const GSERIALIZED *gs, bool ever);
91extern int ea_touches_geo_tcbuffer(const GSERIALIZED *gs,
92 const Temporal *temp, bool ever);
93extern int ea_touches_tcbuffer_cbuffer(const Temporal *temp,
94 const Cbuffer *cb, bool ever);
95extern int ea_touches_cbuffer_tcbuffer(const Cbuffer *cb,
96 const Temporal *temp, bool ever);
97extern int ea_touches_tcbuffer_tcbuffer(const Temporal *temp1,
98 const Temporal *temp2, bool ever);
99
100extern int edwithin_tcbuffer_tcbuffer(const Temporal *temp1,
101 const Temporal *temp2, double dist);
102extern int adwithin_tcbuffer_tcbuffer(const Temporal *temp1,
103 const Temporal *temp2, double dist);
104
105/*****************************************************************************/
106
107#endif
int ea_intersects_geo_tcbuffer(const GSERIALIZED *gs, const Temporal *temp, bool ever)
Return 1 if a temporal circular buffer and a geometry intersect 0 if not, and -1 on error or if the g...
Definition: tcbuffer_spatialrels.c:1054
int ea_disjoint_cbuffer_tcbuffer(const Cbuffer *cb, const Temporal *temp, bool ever)
Return 1 if a temporal circular buffer and a circular buffer are ever disjoint, 0 if not,...
Definition: tcbuffer_spatialrels.c:940
int ea_disjoint_tcbuffer_tcbuffer(const Temporal *temp1, const Temporal *temp2, bool ever)
Return 1 if the temporal circular buffers are ever/always disjoint, 0 if not, and -1 on error or if t...
Definition: tcbuffer_spatialrels.c:987
int ea_intersects_tcbuffer_geo(const Temporal *temp, const GSERIALIZED *gs, bool ever)
Return 1 if a temporal circular buffer ever/always intersects a geometry, 0 if not,...
Definition: tcbuffer_spatialrels.c:1037
int adwithin_tcbuffer_tcbuffer(const Temporal *temp1, const Temporal *temp2, double dist)
Return 1 if two temporal circular buffers are always within a distance, 0 if not, -1 on error or if t...
Definition: tcbuffer_spatialrels.c:1547
int ea_touches_tcbuffer_geo(const Temporal *temp, const GSERIALIZED *gs, bool ever)
Return 1 if a temporal circular buffer and a geometry ever touch, 0 if not, and -1 on error or if the...
Definition: tcbuffer_spatialrels.c:1215
int ea_intersects_cbuffer_tcbuffer(const Cbuffer *cb, const Temporal *temp, bool ever)
Return 1 if a circular buffer ever/always intersects a temporal circular buffer, 0 if not,...
Definition: tcbuffer_spatialrels.c:1118
int ea_intersects_tcbuffer_tcbuffer(const Temporal *temp1, const Temporal *temp2, bool ever)
Return 1 if a temporal circular buffer ever/always intersects another one, 0 if not,...
Definition: tcbuffer_spatialrels.c:1165
int ea_disjoint_tcbuffer_cbuffer(const Temporal *temp, const Cbuffer *cb, bool ever)
Return 1 if a temporal circular buffer and a circular buffer are ever disjoint, 0 if not,...
Definition: tcbuffer_spatialrels.c:923
int ea_disjoint_geo_tcbuffer(const GSERIALIZED *gs, const Temporal *temp, bool ever)
Return 1 if a temporal circular buffer and a geometry are ever disjoint,0 if not, and -1 on error or ...
Definition: tcbuffer_spatialrels.c:878
int ea_intersects_tcbuffer_cbuffer(const Temporal *temp, const Cbuffer *cb, bool ever)
Return 1 if a temporal circular buffer ever/always intersects a circular buffer, 0 if not,...
Definition: tcbuffer_spatialrels.c:1101
int ea_disjoint_tcbuffer_geo(const Temporal *temp, const GSERIALIZED *gs, bool ever)
Return 1 if a temporal circular buffer and a geometry are ever disjoint,0 if not, and -1 on error or ...
Definition: tcbuffer_spatialrels.c:861
int edwithin_tcbuffer_tcbuffer(const Temporal *temp1, const Temporal *temp2, double dist)
Return 1 if two temporal circular buffers are ever within a distance, 0 if not, -1 on error or if the...
Definition: tcbuffer_spatialrels.c:1531
int ea_touches_geo_tcbuffer(const GSERIALIZED *gs, const Temporal *temp, bool ever)
Return 1 if a temporal circular buffer and a geometry ever touch, 0 if not, and -1 on error or if the...
Definition: tcbuffer_spatialrels.c:1231
Functions for temporal buffers.
Definition: cbuffer.h:50
Definition: postgis_ext_defs.in.h:170
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:173
int ea_touches_tcbuffer_cbuffer(const Temporal *temp, const Cbuffer *cb, bool ever)
Return 1 if a temporal circular buffer ever/always touches a circular buffer, 0 if not,...
Definition: tcbuffer_spatialrels.c:1276
int ea_covers_cbuffer_tcbuffer(const Cbuffer *cb, const Temporal *temp, bool ever)
Return 1 if a circular buffer ever covers a temporal circular buffer, 0 if not, and -1 on error.
Definition: tcbuffer_spatialrels.c:723
int ea_contains_cbuffer_tcbuffer(const Cbuffer *cb, const Temporal *temp, bool ever)
Return 1 if a circular buffer ever contains a temporal circular buffer, 0 if not, and -1 on error.
Definition: tcbuffer_spatialrels.c:534
int ea_touches_tcbuffer_tcbuffer(const Temporal *temp1, const Temporal *temp2, bool ever)
Return 1 if a temporal circular buffer ever/always touches another one, 0 if not, and -1 on error.
Definition: tcbuffer_spatialrels.c:1337
int ea_contains_geo_tcbuffer(const GSERIALIZED *gs, const Temporal *temp, bool ever)
Spatial relationships for temporal points.
Definition: tcbuffer_spatialrels.c:444
int ea_contains_tcbuffer_cbuffer(const Temporal *temp, const Cbuffer *cb, bool ever)
Return 1 if a temporal circular buffer ever/always contains a circular buffer, 0 if not,...
Definition: tcbuffer_spatialrels.c:584
int ea_covers_tcbuffer_tcbuffer(const Temporal *temp1, const Temporal *temp2, bool ever)
Return 1 if a temporal circular buffer ever/always covers another one, 0 if not, and -1 on error.
Definition: tcbuffer_spatialrels.c:814
int ea_contains_tcbuffer_geo(const Temporal *temp, const GSERIALIZED *gs, bool ever)
Return 1 if a temporal circular buffer ever/always contains a geometry, 0 if not, and -1 on error or ...
Definition: tcbuffer_spatialrels.c:480
int ea_covers_tcbuffer_cbuffer(const Temporal *temp, const Cbuffer *cb, bool ever)
Return 1 if a temporal circular buffer ever/always covers a circular buffer, 0 if not,...
Definition: tcbuffer_spatialrels.c:768
int ea_touches_cbuffer_tcbuffer(const Cbuffer *cb, const Temporal *temp, bool ever)
Return 1 if a temporal circular buffer ever/always touches a circular buffer, 0 if not,...
Definition: tcbuffer_spatialrels.c:1293
int ea_covers_geo_tcbuffer(const GSERIALIZED *gs, const Temporal *temp, bool ever)
Return 1 if a geometry ever/always covers a temporal circular buffer 0 if not, and -1 on error or if ...
Definition: tcbuffer_spatialrels.c:638
int ea_covers_tcbuffer_geo(const Temporal *temp, const GSERIALIZED *gs, bool ever)
Return 1 if a temporal circular buffer ever/always covers a geometry, 0 if not, and -1 on error or if...
Definition: tcbuffer_spatialrels.c:675
int const GSERIALIZED * gs
Definition: trgeo_spatialrels.h:52
int const GSERIALIZED bool ever
Definition: trgeo_spatialrels.h:53