![]() |
MobilityDB 1.3
|
Network-based static point and segment types. More...
#include "npoint/tnpoint.h"
#include <libpq/pqformat.h>
#include <liblwgeom.h>
#include <meos.h>
#include <meos_internal.h>
#include "temporal/postgres_types.h"
#include "temporal/set.h"
#include "temporal/span.h"
#include "temporal/temporal.h"
#include "temporal/tnumber_mathfuncs.h"
#include "temporal/type_inout.h"
#include "temporal/type_util.h"
#include "geo/stbox.h"
#include "npoint/tnpoint_parser.h"
#include "pg_temporal/temporal.h"
#include "pg_geo/postgis.h"
Functions | |
Datum | Geom_to_npoint (PG_FUNCTION_ARGS) |
Convert a geometry into a network point @sqlfn npoint() More... | |
Datum | Geom_to_nsegment (PG_FUNCTION_ARGS) |
Convert a geometry into a network segment @sqlfn nsegment() More... | |
Datum | Npoint_as_ewkb (PG_FUNCTION_ARGS) |
Return the Well-Known Binary (WKB) representation of a network point @sqlfn asBinary() More... | |
Datum | Npoint_as_ewkt (PG_FUNCTION_ARGS) |
Return the Extended Well-Known Text (EWKT) representation of a network point. More... | |
Datum | Npoint_as_hexwkb (PG_FUNCTION_ARGS) |
Return the ASCII hex-encoded Well-Known Binary (HexWKB) representation of a network point @sqlfn asHexWKB() More... | |
Datum | Npoint_as_text (PG_FUNCTION_ARGS) |
Return the Well-Known Text (WKT) representation of a network point @sqlfn asText() More... | |
static Datum | Npoint_as_text_ext (FunctionCallInfo fcinfo, bool extended) |
Return the (Extended) Well-Known Text (WKT or EWKT) representation of a network point @sqlfn asText() More... | |
Datum | Npoint_as_wkb (PG_FUNCTION_ARGS) |
Return the Well-Known Binary (WKB) representation of a network point @sqlfn asBinary() More... | |
Datum | Npoint_cmp (PG_FUNCTION_ARGS) |
Return -1, 0, or 1 depending on whether the first network point is less than, equal to, or greater than the second one. More... | |
Datum | Npoint_constructor (PG_FUNCTION_ARGS) |
Return a network segment from a route identifier and a position @sqlfn npoint() More... | |
Datum | Npoint_eq (PG_FUNCTION_ARGS) |
Return true if the first network point is equal to the second one @sqlfn npoint_eq() More... | |
Datum | Npoint_from_ewkt (PG_FUNCTION_ARGS) |
Return a network point from its Extended Well-Known Text (EWKT) representation. More... | |
Datum | Npoint_from_hexwkb (PG_FUNCTION_ARGS) |
Return a network point from its ASCII hex-encoded Well-Known Binary (HexWKB) representation @sqlfn npointFromHexWKB() More... | |
Datum | Npoint_from_wkb (PG_FUNCTION_ARGS) |
Return a network point from its Well-Known Binary (WKB) representation @sqlfn npointFromBinary() More... | |
Datum | Npoint_ge (PG_FUNCTION_ARGS) |
Return true if the first network point is greater than or equal to the second one @sqlfn npoint_ge() More... | |
Datum | Npoint_gt (PG_FUNCTION_ARGS) |
Return true if the first network point is greater than the second one @sqlfn npoint_gt() More... | |
Datum | Npoint_in (PG_FUNCTION_ARGS) |
Return a network point from its Well-Known Text (WKT) representation. More... | |
Datum | Npoint_le (PG_FUNCTION_ARGS) |
Return true if the first network point is less than or equal to the second one @sqlfn npoint_le() More... | |
Datum | Npoint_lt (PG_FUNCTION_ARGS) |
Return true if the first network point is less than the second one @sqlfn npoint_lt() More... | |
Datum | Npoint_ne (PG_FUNCTION_ARGS) |
Return true if the first network point is not equal to the second one @sqlfn npoint_ne() More... | |
Datum | Npoint_out (PG_FUNCTION_ARGS) |
Return the Well-Known Text (WKT) representation of a a network point @sqlfn npoint_out() More... | |
Datum | Npoint_position (PG_FUNCTION_ARGS) |
Return the position of a network point @sqlfn position() More... | |
Datum | Npoint_recv (PG_FUNCTION_ARGS) |
Return a network point from its Well-Known Binary (WKB) representation @sqlfn npoint_recv() More... | |
Npoint * | npoint_recv (StringInfo buf) |
Return a network point from its binary representation read from a buffer. More... | |
Datum | Npoint_round (PG_FUNCTION_ARGS) |
Return a network point with the precision of the position set to a number of decimal places @sqlfn round() More... | |
Datum | Npoint_route (PG_FUNCTION_ARGS) |
Return the route of a network point @sqlfn route() More... | |
Datum | Npoint_same (PG_FUNCTION_ARGS) |
Return true if two network points are spatially equal @sqlfn same() More... | |
bytea * | npoint_send (const Npoint *np) |
Return the binary representation of a network point. More... | |
Datum | Npoint_send (PG_FUNCTION_ARGS) |
Return the Well-Known Binary (WKB) representation of a a network point @sqlfn npoint_send() More... | |
Datum | Npoint_srid (PG_FUNCTION_ARGS) |
Return the SRID of a network point @sqlfn SRID() More... | |
Datum | Npoint_timestamptz_to_stbox (PG_FUNCTION_ARGS) |
Return a network point and a timestamptz to a spatiotemporal box @sqlfn stbox() More... | |
Datum | Npoint_to_geom (PG_FUNCTION_ARGS) |
Convert a network point into a geometry @sqlfn geometry() More... | |
Datum | Npoint_to_nsegment (PG_FUNCTION_ARGS) |
Convert a network point into a network segment @sqlfn nsegment() More... | |
Datum | Npoint_to_stbox (PG_FUNCTION_ARGS) |
Convert a network point into a spatiotemporal box @sqlfn stbox() More... | |
Datum | Npoint_tstzspan_to_stbox (PG_FUNCTION_ARGS) |
Return a network point and a timestamptz span to a spatiotemporal box @sqlfn stbox() More... | |
Datum | Npointset_routes (PG_FUNCTION_ARGS) |
Return the array of routes of a temporal network point @sqlfn routes() More... | |
Datum | Nsegment_cmp (PG_FUNCTION_ARGS) |
Return -1, 0, or 1 depending on whether the first network segment is less than, equal to, or greater than the second one @sqlfn nsegment_cmp() More... | |
Datum | Nsegment_constructor (PG_FUNCTION_ARGS) |
Return a network segment from a route identifier and two positions @sqlfn nsegment() More... | |
Datum | Nsegment_end_position (PG_FUNCTION_ARGS) |
Return the end position of a network segment @sqlfn endPosition() More... | |
Datum | Nsegment_eq (PG_FUNCTION_ARGS) |
Return true if the first network segment is equal to the second one @sqlfn nsegment_eq() More... | |
Datum | Nsegment_ge (PG_FUNCTION_ARGS) |
Return true if the first network segment is greater than or equal to the second one @sqlfn nsegment_ge() More... | |
Datum | Nsegment_gt (PG_FUNCTION_ARGS) |
Return true if the first network segment is greater than the second one @sqlfn nsegment_gt() More... | |
Datum | Nsegment_in (PG_FUNCTION_ARGS) |
Return a network segment from its Well-Known Text (WKT) representation. More... | |
Datum | Nsegment_le (PG_FUNCTION_ARGS) |
Return true if the first network segment is less than or equal to the second one @sqlfn nsegment_le() More... | |
Datum | Nsegment_lt (PG_FUNCTION_ARGS) |
Return true if the first network segment is less than the second one @sqlfn nsegment_lt() More... | |
Datum | Nsegment_ne (PG_FUNCTION_ARGS) |
Return true if the first network segment is not equal to the second one @sqlfn nsegment_ne() More... | |
Datum | Nsegment_out (PG_FUNCTION_ARGS) |
Return the Well-Known Text (WKT) representation of a network segment @sqlfn nsegment_out() More... | |
Datum | Nsegment_recv (PG_FUNCTION_ARGS) |
Return a network segment from its Well-Known Binary (WKB) representation @sqlfn nsegment_recv() More... | |
Nsegment * | nsegment_recv (StringInfo buf) |
Receive function for network segments. More... | |
Datum | Nsegment_round (PG_FUNCTION_ARGS) |
Return a network segment with the precision of the positions set to a number of decimal places @sqlfn round() More... | |
Datum | Nsegment_route (PG_FUNCTION_ARGS) |
Return the route of a network segment @sqlfn route() More... | |
bytea * | nsegment_send (const Nsegment *ns) |
Send function for network segments. More... | |
Datum | Nsegment_send (PG_FUNCTION_ARGS) |
Return the Well-Known Binary (WKB) representation of a network segment @sqlfn nsegment_send() More... | |
Datum | Nsegment_srid (PG_FUNCTION_ARGS) |
Return the SRID of a network segment @sqlfn SRID() More... | |
Datum | Nsegment_start_position (PG_FUNCTION_ARGS) |
Return the start position of a network segment @sqlfn startPosition() More... | |
Datum | Nsegment_to_geom (PG_FUNCTION_ARGS) |
Convert a network segment into a geometry @sqlfn geometry() More... | |
Datum | Nsegment_to_stbox (PG_FUNCTION_ARGS) |
Convert a network segment into a spatiotemporal box @sqlfn stbox() More... | |
Network-based static point and segment types.
Several functions are commented out since they are not currently used. They are kept if needed in the future.