MobilityDB  1.0
tpoint_out.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 __TPOINT_OUT_H__
33 #define __TPOINT_OUT_H__
34 
35 #include <postgres.h>
36 #include <fmgr.h>
37 #include <catalog/pg_type.h>
38 
39 /*****************************************************************************/
40 
41 extern Datum tpoint_as_text(PG_FUNCTION_ARGS);
42 extern Datum tpoint_as_ewkt(PG_FUNCTION_ARGS);
43 extern Datum geoarr_as_text(PG_FUNCTION_ARGS);
44 extern Datum geoarr_as_ewkt(PG_FUNCTION_ARGS);
45 extern Datum tpointarr_as_text(PG_FUNCTION_ARGS);
46 extern Datum tpointarr_as_ewkt(PG_FUNCTION_ARGS);
47 extern Datum tpoint_as_mfjson(PG_FUNCTION_ARGS);
48 extern Datum tpoint_as_binary(PG_FUNCTION_ARGS);
49 extern Datum tpoint_as_ewkb(PG_FUNCTION_ARGS);
50 extern Datum tpoint_as_hexewkb(PG_FUNCTION_ARGS);
51 
52 extern char *ewkt_out(Oid type, Datum value);
53 
54 /*****************************************************************************/
55 
56 #endif
Datum tpoint_as_hexewkb(PG_FUNCTION_ARGS)
Output the temporal point in HexEWKB format.
Definition: tpoint_out.c:1498
Datum tpoint_as_ewkb(PG_FUNCTION_ARGS)
Output the temporal point in EWKB format.
Definition: tpoint_out.c:1487
Datum geoarr_as_ewkt(PG_FUNCTION_ARGS)
Output a geometry/geography array in Extended Well-Known Text (EWKT) format, that is...
Definition: tpoint_out.c:239
Datum tpoint_as_binary(PG_FUNCTION_ARGS)
Output a temporal point in WKB format.
Definition: tpoint_out.c:1476
Datum geoarr_as_text(PG_FUNCTION_ARGS)
Output a geometry/geography array in Well-Known Text (WKT) format.
Definition: tpoint_out.c:228
Datum tpointarr_as_text(PG_FUNCTION_ARGS)
Output a temporal point array in Well-Known Text (WKT) format.
Definition: tpoint_out.c:278
Datum tpointarr_as_ewkt(PG_FUNCTION_ARGS)
Output a temporal point array in Extended Well-Known Text (EWKT) format, that is, in WKT format prefi...
Definition: tpoint_out.c:289
Datum tpoint_as_ewkt(PG_FUNCTION_ARGS)
Output a temporal point in Extended Well-Known Text (EWKT) format, that is, in WKT format prefixed wi...
Definition: tpoint_out.c:181
char * ewkt_out(Oid type, Datum value)
Output a geometry in Extended Well-Known Text (EWKT) format, that is, in WKT format prefixed with the...
Definition: tpoint_out.c:94
Datum tpoint_as_mfjson(PG_FUNCTION_ARGS)
Returns the temporal point represented in MF-JSON format.
Definition: tpoint_out.c:708
Datum tpoint_as_text(PG_FUNCTION_ARGS)
Output a temporal point in Well-Known Text (WKT) format.
Definition: tpoint_out.c:144