MobilityDB  1.0
tnpoint_spatialrels.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * This MobilityDB code is provided under The PostgreSQL License.
4  *
5  * Copyright (c) 2016-2021, Université libre de Bruxelles and MobilityDB
6  * contributors
7  *
8  * Permission to use, copy, modify, and distribute this software and its
9  * documentation for any purpose, without fee, and without a written
10  * agreement is hereby granted, provided that the above copyright notice and
11  * this paragraph and the following two paragraphs appear in all copies.
12  *
13  * IN NO EVENT SHALL UNIVERSITE LIBRE DE BRUXELLES BE LIABLE TO ANY PARTY FOR
14  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
15  * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
16  * EVEN IF UNIVERSITE LIBRE DE BRUXELLES HAS BEEN ADVISED OF THE POSSIBILITY
17  * OF SUCH DAMAGE.
18  *
19  * UNIVERSITE LIBRE DE BRUXELLES SPECIFICALLY DISCLAIMS ANY WARRANTIES,
20  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
21  * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON
22  * AN "AS IS" BASIS, AND UNIVERSITE LIBRE DE BRUXELLES HAS NO OBLIGATIONS TO
23  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 
24  *
25  *****************************************************************************/
26 
32 #ifndef __TNPOINT_SPATIALRELS_H__
33 #define __TNPOINT_SPATIALRELS_H__
34 
35 #include <postgres.h>
36 #include <catalog/pg_type.h>
37 #include <fmgr.h>
38 
39 /*****************************************************************************/
40 
41 extern Datum contains_geo_tnpoint(PG_FUNCTION_ARGS);
42 
43 extern Datum disjoint_geo_tnpoint(PG_FUNCTION_ARGS);
44 extern Datum disjoint_npoint_tnpoint(PG_FUNCTION_ARGS);
45 extern Datum disjoint_tnpoint_geo(PG_FUNCTION_ARGS);
46 extern Datum disjoint_tnpoint_npoint(PG_FUNCTION_ARGS);
47 
48 extern Datum intersects_geo_tnpoint(PG_FUNCTION_ARGS);
49 extern Datum intersects_npoint_tnpoint(PG_FUNCTION_ARGS);
50 extern Datum intersects_tnpoint_geo(PG_FUNCTION_ARGS);
51 extern Datum intersects_tnpoint_npoint(PG_FUNCTION_ARGS);
52 
53 extern Datum touches_geo_tnpoint(PG_FUNCTION_ARGS);
54 extern Datum touches_npoint_tnpoint(PG_FUNCTION_ARGS);
55 extern Datum touches_tnpoint_geo(PG_FUNCTION_ARGS);
56 extern Datum touches_tnpoint_npoint(PG_FUNCTION_ARGS);
57 
58 extern Datum dwithin_geo_tnpoint(PG_FUNCTION_ARGS);
59 extern Datum dwithin_npoint_tnpoint(PG_FUNCTION_ARGS);
60 extern Datum dwithin_tnpoint_geo(PG_FUNCTION_ARGS);
61 extern Datum dwithin_tnpoint_npoint(PG_FUNCTION_ARGS);
62 extern Datum dwithin_tnpoint_tnpoint(PG_FUNCTION_ARGS);
63 
64 /*****************************************************************************/
65 
66 #endif /* __TNPOINT_SPATIALRELS_H__ */
Datum dwithin_tnpoint_geo(PG_FUNCTION_ARGS)
Returns true if the trajectory of the temporal network point and the geometry are within the given di...
Definition: tnpoint_spatialrels.c:313
Datum dwithin_geo_tnpoint(PG_FUNCTION_ARGS)
Returns true if the geometry and the trajectory of the temporal network point are within the given di...
Definition: tnpoint_spatialrels.c:279
Datum disjoint_tnpoint_geo(PG_FUNCTION_ARGS)
Returns true if the trajectory of the temporal network point and the geometry are disjoint...
Definition: tnpoint_spatialrels.c:175
Datum intersects_geo_tnpoint(PG_FUNCTION_ARGS)
Returns true if the geometry and the trajectory of the temporal network point intersect.
Definition: tnpoint_spatialrels.c:211
Datum touches_tnpoint_npoint(PG_FUNCTION_ARGS)
Returns true if the trajectory of the temporal network point and the network point touch...
Definition: tnpoint_spatialrels.c:425
Datum dwithin_tnpoint_tnpoint(PG_FUNCTION_ARGS)
Returns true if the trajectories of the temporal network points are within the given distance...
Definition: tnpoint_spatialrels.c:347
Datum intersects_tnpoint_geo(PG_FUNCTION_ARGS)
Returns true if the trajectory of the temporal network point and the geometry intersect.
Definition: tnpoint_spatialrels.c:243
Datum intersects_npoint_tnpoint(PG_FUNCTION_ARGS)
Returns true if the network point and the trajectory of the temporal network point intersect...
Definition: tnpoint_spatialrels.c:226
Datum touches_tnpoint_geo(PG_FUNCTION_ARGS)
Returns true if the trajectory of the temporal network point and the geometry touch.
Definition: tnpoint_spatialrels.c:410
Datum touches_geo_tnpoint(PG_FUNCTION_ARGS)
Returns true if the geometry and the trajectory of the temporal network point touch.
Definition: tnpoint_spatialrels.c:378
Datum disjoint_geo_tnpoint(PG_FUNCTION_ARGS)
Returns true if the geometry and the trajectory of the temporal network point are disjoint...
Definition: tnpoint_spatialrels.c:143
Datum contains_geo_tnpoint(PG_FUNCTION_ARGS)
Returns true if the geometry contains the trajectory of the temporal network point.
Definition: tnpoint_spatialrels.c:124
Datum disjoint_tnpoint_npoint(PG_FUNCTION_ARGS)
Returns true if the trajectory of the temporal network point and the network point are disjoint...
Definition: tnpoint_spatialrels.c:190
Datum dwithin_tnpoint_npoint(PG_FUNCTION_ARGS)
Returns true if the trajectory of the temporal network point and the network point are within the giv...
Definition: tnpoint_spatialrels.c:329
Datum touches_npoint_tnpoint(PG_FUNCTION_ARGS)
Definition: tnpoint_spatialrels.c:393
Datum dwithin_npoint_tnpoint(PG_FUNCTION_ARGS)
Returns true if the network point and the trajectory of the temporal network point are within the giv...
Definition: tnpoint_spatialrels.c:295
Datum disjoint_npoint_tnpoint(PG_FUNCTION_ARGS)
Returns true if the network point and the trajectory of the temporal network point are disjoint...
Definition: tnpoint_spatialrels.c:158
Datum intersects_tnpoint_npoint(PG_FUNCTION_ARGS)
Returns true if the trajectory of the temporal network point and the network point intersect...
Definition: tnpoint_spatialrels.c:258