MobilityDB 1.1
Functions
tnpoint_static.c File Reference
#include "npoint/tnpoint_static.h"
#include <libpq/pqformat.h>
#include <executor/spi.h>
#include <liblwgeom.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/type_out.h"
#include "general/type_util.h"
#include "pg_general/temporal.h"
#include "pg_general/tnumber_mathfuncs.h"
#include "pg_npoint/tnpoint_static.h"
Include dependency graph for tnpoint_static.c:

Functions

Datum datum_npoint_round (Datum npoint, Datum size)
 Set the precision of the position of a network point to the number of decimal places. More...
 
PGDLLEXPORT Datum Geom_to_npoint (PG_FUNCTION_ARGS)
 Transforms the geometry into a network point. More...
 
PGDLLEXPORT Datum Geom_to_nsegment (PG_FUNCTION_ARGS)
 Transforms the geometry into a network segment. More...
 
PGDLLEXPORT Datum Npoint_cmp (PG_FUNCTION_ARGS)
 Return -1, 0, or 1 depending on whether the first network point is less than, equal, or greater than the second one. More...
 
PGDLLEXPORT Datum Npoint_constructor (PG_FUNCTION_ARGS)
 Construct a network segment from the arguments. More...
 
PGDLLEXPORT Datum Npoint_eq (PG_FUNCTION_ARGS)
 Return true if the first network point is equal to the second one. More...
 
PGDLLEXPORT Datum Npoint_ge (PG_FUNCTION_ARGS)
 Return true if the first network point is greater than or equal to the second one. More...
 
PGDLLEXPORT Datum Npoint_get_srid (PG_FUNCTION_ARGS)
 Return the SRID of the network point. More...
 
PGDLLEXPORT Datum Npoint_gt (PG_FUNCTION_ARGS)
 Return true if the first network point is greater than the second one. More...
 
PGDLLEXPORT Datum Npoint_in (PG_FUNCTION_ARGS)
 Input function for network points. More...
 
PGDLLEXPORT Datum Npoint_le (PG_FUNCTION_ARGS)
 Return true if the first network point is less than or equal to the second one. More...
 
PGDLLEXPORT Datum Npoint_lt (PG_FUNCTION_ARGS)
 Return true if the first network point is less than the second one. More...
 
PGDLLEXPORT Datum Npoint_ne (PG_FUNCTION_ARGS)
 Return true if the first network point is not equal to the second one. More...
 
PGDLLEXPORT Datum Npoint_out (PG_FUNCTION_ARGS)
 Output function for network points. More...
 
PGDLLEXPORT Datum Npoint_position (PG_FUNCTION_ARGS)
 Return the position of the network point. More...
 
PGDLLEXPORT Datum Npoint_recv (PG_FUNCTION_ARGS)
 Receive function for network points. More...
 
Npointnpoint_recv (StringInfo buf)
 Network-based static point and segment types. More...
 
Npointnpoint_round (const Npoint *np, Datum size)
 Set the precision of the position of a network point to the number of decimal places. More...
 
PGDLLEXPORT Datum Npoint_round (PG_FUNCTION_ARGS)
 Set the precision of the position of a network point to the number of decimal places. More...
 
PGDLLEXPORT Datum Npoint_route (PG_FUNCTION_ARGS)
 Return the route of the network point. More...
 
byteanpoint_send (const Npoint *np)
 Return the binary representation of a network point. More...
 
PGDLLEXPORT Datum Npoint_send (PG_FUNCTION_ARGS)
 Send function for network points. More...
 
PGDLLEXPORT Datum Npoint_to_geom (PG_FUNCTION_ARGS)
 Transforms the network point into a geometry. More...
 
PGDLLEXPORT Datum Npoint_to_nsegment (PG_FUNCTION_ARGS)
 Cast a network segment from a network point. More...
 
Setnpointset_round (const Set *s, Datum prec)
 Set the precision of the coordinates to the number of decimal places. More...
 
PGDLLEXPORT Datum Nsegment_cmp (PG_FUNCTION_ARGS)
 Return -1, 0, or 1 depending on whether the first network segment is less than, equal, or greater than the second one. More...
 
PGDLLEXPORT Datum Nsegment_constructor (PG_FUNCTION_ARGS)
 Construct a network segment from the arguments. More...
 
PGDLLEXPORT Datum Nsegment_end_position (PG_FUNCTION_ARGS)
 Return the end position of the network segment. More...
 
PGDLLEXPORT Datum Nsegment_eq (PG_FUNCTION_ARGS)
 Return true if the first network segment is equal to the second one. More...
 
PGDLLEXPORT Datum Nsegment_ge (PG_FUNCTION_ARGS)
 Return true if the first network segment is greater than or equal to the second one. More...
 
PGDLLEXPORT Datum Nsegment_get_srid (PG_FUNCTION_ARGS)
 Return the SRID of the network segment. More...
 
PGDLLEXPORT Datum Nsegment_gt (PG_FUNCTION_ARGS)
 Return true if the first network segment is greater than the second one. More...
 
PGDLLEXPORT Datum Nsegment_in (PG_FUNCTION_ARGS)
 Input function for network segments Example of input: (1, 0.5, 0.6) More...
 
PGDLLEXPORT Datum Nsegment_le (PG_FUNCTION_ARGS)
 Return true if the first network segment is less than or equal to the second one. More...
 
PGDLLEXPORT Datum Nsegment_lt (PG_FUNCTION_ARGS)
 Return true if the first network segment is less than the second one. More...
 
PGDLLEXPORT Datum Nsegment_ne (PG_FUNCTION_ARGS)
 Return true if the first network segment is not equal to the second one. More...
 
PGDLLEXPORT Datum Nsegment_out (PG_FUNCTION_ARGS)
 Output function for network segments. More...
 
PGDLLEXPORT Datum Nsegment_recv (PG_FUNCTION_ARGS)
 Receive function for network segments. More...
 
Nsegmentnsegment_recv (StringInfo buf)
 Receive function for network segments. More...
 
Nsegmentnsegment_round (const Nsegment *ns, Datum size)
 Set the precision of the position of a network point to the number of decimal places. More...
 
PGDLLEXPORT Datum Nsegment_round (PG_FUNCTION_ARGS)
 Set the precision of the position of a network point to the number of decimal places. More...
 
PGDLLEXPORT Datum Nsegment_route (PG_FUNCTION_ARGS)
 Return the route of the network segment. More...
 
byteansegment_send (const Nsegment *ns)
 Send function for network segments. More...
 
PGDLLEXPORT Datum Nsegment_send (PG_FUNCTION_ARGS)
 Send function for network segments. More...
 
PGDLLEXPORT Datum Nsegment_start_position (PG_FUNCTION_ARGS)
 Return the start position of the network segment. More...
 
PGDLLEXPORT Datum Nsegment_to_geom (PG_FUNCTION_ARGS)
 Transforms the network segment into a geometry. More...