MobilityDB 1.3
Loading...
Searching...
No Matches
trgeo_inst.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 __TRGEO_INST_H__
35#define __TRGEO_INST_H__
36
37/* PostgreSQL */
38#include <postgres.h>
39/* MEOS */
40#include "temporal/temporal.h"
41#include "pose/pose.h"
42
43/*****************************************************************************
44 * General functions
45 *****************************************************************************/
46
47extern const GSERIALIZED *trgeoinst_geom_p(const TInstant *inst);
48extern size_t trgeoinst_pose_varsize(const TInstant *inst);
49extern void trgeoinst_set_pose(TInstant *inst);
50extern TInstant *trgeoinst_tposeinst(const TInstant *inst);
51
52/* Constructor functions */
53
54extern TInstant *trgeoinst_make1(const GSERIALIZED *geom, const Pose *pose,
55 TimestampTz t);
56
57/* Transformation functions */
58
59extern TInstant *trgeoseq_to_tinstant(const TSequence *seq);
61
62/*****************************************************************************/
63
64#endif /* __TRGEO_INST_H__ */
int64 TimestampTz
Definition: postgres_ext_defs.in.h:22
Definition: postgis_ext_defs.in.h:170
Basic functions for static pose objects.
Definition: pose.h:56
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
TInstant * trgeoseqset_to_tinstant(const TSequenceSet *ts)
Return a temporal sequence set transformed into a temporal instant.
Definition: trgeo_inst.c:235
size_t trgeoinst_pose_varsize(const TInstant *inst)
Returns the size of the trgeometry instant without reference geometry.
Definition: trgeo_inst.c:69
const GSERIALIZED * trgeoinst_geom_p(const TInstant *inst)
Functions for temporal rigid instant geometries.
Definition: trgeo_inst.c:55
TInstant * trgeoinst_make1(const GSERIALIZED *geom, const Pose *pose, TimestampTz t)
Creating a temporal value from its arguments.
Definition: trgeo_inst.c:149
TInstant * trgeoinst_tposeinst(const TInstant *inst)
Returns a new temporal pose instant obtained by removing the reference geometry of a temporal rigid g...
Definition: trgeo_inst.c:96
TInstant * trgeoseq_to_tinstant(const TSequence *seq)
Return a temporal sequence transformed into a temporal instant.
Definition: trgeo_inst.c:215
void trgeoinst_set_pose(TInstant *inst)
Set the size of the trgeometry instant without reference geometry.
Definition: trgeo_inst.c:81