MobilityDB  1.0
tnpoint_distance.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_DISTANCE_H__
33 #define __TNPOINT_DISTANCE_H__
34 
35 #include <postgres.h>
36 #include <catalog/pg_type.h>
37 #include "general/temporal.h"
38 
39 /*****************************************************************************/
40 
41 extern Datum distance_geo_tnpoint(PG_FUNCTION_ARGS);
42 extern Datum distance_npoint_tnpoint(PG_FUNCTION_ARGS);
43 extern Datum distance_tnpoint_geo(PG_FUNCTION_ARGS);
44 extern Datum distance_tnpoint_npoint(PG_FUNCTION_ARGS);
45 extern Datum distance_tnpoint_tnpoint(PG_FUNCTION_ARGS);
46 
47 extern Datum NAI_geo_tnpoint(PG_FUNCTION_ARGS);
48 extern Datum NAI_npoint_tnpoint(PG_FUNCTION_ARGS);
49 extern Datum NAI_tnpoint_geo(PG_FUNCTION_ARGS);
50 extern Datum NAI_tnpoint_npoint(PG_FUNCTION_ARGS);
51 extern Datum NAI_tnpoint_tnpoint(PG_FUNCTION_ARGS);
52 extern Datum NAD_geo_tnpoint(PG_FUNCTION_ARGS);
53 extern Datum NAD_npoint_tnpoint(PG_FUNCTION_ARGS);
54 extern Datum NAD_tnpoint_geo(PG_FUNCTION_ARGS);
55 extern Datum NAD_tnpoint_npoint(PG_FUNCTION_ARGS);
56 extern Datum NAD_tnpoint_tnpoint(PG_FUNCTION_ARGS);
57 extern Datum shortestline_geo_tnpoint(PG_FUNCTION_ARGS);
58 extern Datum shortestline_npoint_tnpoint(PG_FUNCTION_ARGS);
59 extern Datum shortestline_tnpoint_geo(PG_FUNCTION_ARGS);
60 extern Datum shortestline_tnpoint_npoint(PG_FUNCTION_ARGS);
61 extern Datum shortestline_tnpoint_tnpoint(PG_FUNCTION_ARGS);
62 
63 /*****************************************************************************/
64 
65 #endif /* __TNPOINT_DISTANCE_H__ */
Datum distance_tnpoint_geo(PG_FUNCTION_ARGS)
Returns the temporal distance between the temporal network point and the geometry point...
Definition: tnpoint_distance.c:104
Datum NAD_tnpoint_geo(PG_FUNCTION_ARGS)
Returns the nearest approach distance of the temporal network point and the geometry.
Definition: tnpoint_distance.c:391
Datum shortestline_tnpoint_tnpoint(PG_FUNCTION_ARGS)
Returns the line connecting the nearest approach point between the two temporal networks.
Definition: tnpoint_distance.c:567
Datum shortestline_tnpoint_geo(PG_FUNCTION_ARGS)
Returns the line connecting the nearest approach point between the temporal network point and the geo...
Definition: tnpoint_distance.c:519
Datum shortestline_tnpoint_npoint(PG_FUNCTION_ARGS)
Returns the line connecting the nearest approach point between the temporal network point and the net...
Definition: tnpoint_distance.c:544
Datum NAD_npoint_tnpoint(PG_FUNCTION_ARGS)
Returns the nearest approach distance of the network point and the temporal network point...
Definition: tnpoint_distance.c:366
Datum shortestline_npoint_tnpoint(PG_FUNCTION_ARGS)
Returns the line connecting the nearest approach point between the network point and the temporal net...
Definition: tnpoint_distance.c:498
Datum NAD_tnpoint_tnpoint(PG_FUNCTION_ARGS)
Returns the nearest approach distance of the two temporal network points.
Definition: tnpoint_distance.c:444
Datum distance_npoint_tnpoint(PG_FUNCTION_ARGS)
Returns the temporal distance between the network point and the temporal network point.
Definition: tnpoint_distance.c:84
Basic functions for temporal types of any subtype.
Datum distance_tnpoint_npoint(PG_FUNCTION_ARGS)
Returns the temporal distance between the temporal network point and the network point.
Definition: tnpoint_distance.c:130
Datum distance_tnpoint_tnpoint(PG_FUNCTION_ARGS)
Returns the temporal distance between the temporal network point and the network point.
Definition: tnpoint_distance.c:170
Datum NAD_geo_tnpoint(PG_FUNCTION_ARGS)
Returns the nearest approach distance of the geometry and the temporal network point.
Definition: tnpoint_distance.c:337
Datum distance_geo_tnpoint(PG_FUNCTION_ARGS)
Returns the temporal distance between the geometry point and the temporal network point...
Definition: tnpoint_distance.c:58
Datum NAI_tnpoint_geo(PG_FUNCTION_ARGS)
Returns the nearest approach instant of the temporal network point and the geometry.
Definition: tnpoint_distance.c:246
Datum NAI_tnpoint_npoint(PG_FUNCTION_ARGS)
Returns the nearest approach instant of the temporal network point and the network point...
Definition: tnpoint_distance.c:275
Datum NAI_tnpoint_tnpoint(PG_FUNCTION_ARGS)
Returns the nearest approach instant of the two temporal network points.
Definition: tnpoint_distance.c:299
Datum shortestline_geo_tnpoint(PG_FUNCTION_ARGS)
Returns the line connecting the nearest approach point between the geometry and the temporal network ...
Definition: tnpoint_distance.c:473
Datum NAI_npoint_tnpoint(PG_FUNCTION_ARGS)
Returns the nearest approach instant of the network point and the temporal network point...
Definition: tnpoint_distance.c:221
Datum NAI_geo_tnpoint(PG_FUNCTION_ARGS)
Returns the nearest approach instant of the geometry and the temporal network point.
Definition: tnpoint_distance.c:192
Datum NAD_tnpoint_npoint(PG_FUNCTION_ARGS)
Returns the nearest approach distance of the temporal network point and the network point...
Definition: tnpoint_distance.c:420