MobilityDB 1.3
Loading...
Searching...
No Matches
trgeo_seqset.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
35#ifndef __TRGEO_SEQSET_H__
36#define __TRGEO_SEQSET_H__
37
38/* PostgreSQL */
39#include <postgres.h>
40/* MEOS */
41#include "temporal/temporal.h"
42
43/*****************************************************************************
44 * General functions
45 *****************************************************************************/
46
47extern const GSERIALIZED *trgeoseqset_geom_p(const TSequenceSet *ts);
49
50/* Constructor functions */
51
53 const TSequence **sequences, int count, int maxcount, bool normalize);
55 const TSequence **sequences, int count, int maxcount, bool normalize);
56extern TSequenceSet *trgeoseqset_make(const GSERIALIZED *geom,
57 const TSequence **sequences, int count, bool normalize);
59 TSequence **sequences, int count, bool normalize);
61 const TInstant **instants, int count, interpType interp,
62 Interval *maxt, double maxdist);
63
64/* Transformation functions */
65
67extern TSequence *trgeo_to_tsequence(const Temporal *temp,
68 const char *interp_str);
70 const char *interp_str);
71
72/*****************************************************************************/
73
74#endif /* __TRGEO_SEQSET_H__ */
interpType
Enumeration that defines the interpolation types used in MEOS.
Definition: meos.h:161
Definition: postgis_ext_defs.in.h:170
Definition: postgres_ext_defs.in.h:27
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
TSequenceSet * trgeoseqset_make_gaps(const GSERIALIZED *geom, const TInstant **instants, int count, interpType interp, Interval *maxt, double maxdist)
Construct a temporal sequence set from an array of temporal instants introducing a gap when two conse...
Definition: trgeo_seqset.c:316
TSequenceSet * trgeoseqset_tposeseqset(const TSequenceSet *ss)
Returns a new temporal pose sequence obtained by removing the reference geometry of a temporal rigid ...
Definition: trgeo_seqset.c:80
TSequenceSet * trgeoseqset_make_exp(const GSERIALIZED *geom, const TSequence **sequences, int count, int maxcount, bool normalize)
Construct a temporal sequence set from an array of temporal sequences.
Definition: trgeo_seqset.c:223
TSequence * trgeo_to_tsequence(const Temporal *temp, const char *interp_str)
Return a temporal rigid geometry transformed to a temporal sequence.
Definition: trgeo.c:836
TSequenceSet * trgeoseqset_make_free(const GSERIALIZED *geom, TSequence **sequences, int count, bool normalize)
Construct a temporal sequence set from an array of temporal sequences and free the array and the sequ...
Definition: trgeo_seqset.c:264
TSequenceSet * trgeo_to_tsequenceset(const Temporal *temp, const char *interp_str)
Return a temporal rigid geometry transformed to a temporal sequence set.
Definition: trgeo.c:868
TSequenceSet * trgeoseqset_make1_exp(const GSERIALIZED *geom, const TSequence **sequences, int count, int maxcount, bool normalize)
Construct a temporal sequence set from an array of temporal sequences.
Definition: trgeo_seqset.c:114
TSequence * trgeoseqset_to_tsequence(const TSequenceSet *ss)
Return a temporal sequence set transformed into a temporal sequence.
Definition: trgeo_seq.c:368
TSequenceSet * trgeoseqset_make(const GSERIALIZED *geom, const TSequence **sequences, int count, bool normalize)
Construct a temporal sequence set from an array of temporal sequences.
Definition: trgeo_seqset.c:246
const GSERIALIZED * trgeoseqset_geom_p(const TSequenceSet *ts)
Returns the reference geometry of the temporal value.
Definition: trgeo_seqset.c:62