MobilityDB 1.3
Loading...
Searching...
No Matches
tcbuffer_spatialfuncs.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_SPATIALFUNCS_H__
35#define __TCBUFFER_SPATIALFUNCS_H__
36
37/* PostgreSQL */
38#include <postgres.h>
39/* MEOS */
40#include "temporal/temporal.h"
41#include "cbuffer/cbuffer.h"
42
43/*****************************************************************************/
44
45/* Traversed area functions */
46
51 const TInstant *inst2);
52
53/* Restriction functions */
54
56 const Cbuffer *cb, bool atfunc);
57extern Temporal *tcbuffer_restrict_stbox(const Temporal *temp,
58 const STBox *box, bool border_inc, bool atfunc);
59extern Temporal *tcbuffer_restrict_geom(const Temporal *temp,
60 const GSERIALIZED *gs, bool atfunc);
61
62/*****************************************************************************/
63
64#endif /* __TCBUFFER_SPATIALFUNCS_H__ */
Temporal * tcbuffer_restrict_cbuffer(const Temporal *temp, const Cbuffer *cb, bool atfunc)
Return a temporal circular buffer restricted to a circular buffer.
Definition: tcbuffer.c:933
Temporal * tcbuffer_restrict_geom(const Temporal *temp, const GSERIALIZED *gs, bool atfunc)
Return a temporal circular buffer restricted to a geometry.
Definition: tcbuffer.c:1047
Temporal * tcbuffer_restrict_stbox(const Temporal *temp, const STBox *box, bool border_inc, bool atfunc)
Return a temporal circular buffer restricted to a spatiotemporal box.
Definition: tcbuffer.c:981
Functions for temporal buffers.
Definition: cbuffer.h:50
Definition: postgis_ext_defs.in.h:170
Structure to represent spatiotemporal boxes.
Definition: meos.h:134
Structure to represent temporal values of instant subtype.
Definition: meos.h:185
Structure to represent temporal values of sequence set subtype.
Definition: meos.h:224
Structure to represent temporal values of sequence subtype.
Definition: meos.h:202
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:173
GSERIALIZED * tcbufferseqset_trav_area(const TSequenceSet *ss)
Return the traversed area of a temporal circular buffer.
Definition: tcbuffer_spatialfuncs.c:618
GSERIALIZED * tcbuffersegm_trav_area(const TInstant *inst1, const TInstant *inst2)
Return the traversed area of a temporal circular buffer segment with linear interpolation.
Definition: tcbuffer_spatialfuncs.c:440
GSERIALIZED * tcbufferinst_trav_area(const TInstant *inst)
Temporal distance for temporal network points.
Definition: tcbuffer_spatialfuncs.c:407
GSERIALIZED * tcbufferseq_trav_area(const TSequence *seq)
Return the traversed area of a temporal circular buffer sequence.
Definition: tcbuffer_spatialfuncs.c:541
int const GSERIALIZED * gs
Definition: trgeo_spatialrels.h:52