MobilityDB 1.1
Functions
tnpoint_static.h File Reference
#include <postgres.h>
#include "npoint/tnpoint.h"
Include dependency graph for tnpoint_static.h:

Go to the source code of this file.

Functions

Npointgeom_npoint (const GSERIALIZED *gs)
 Transforms the geometry into a network point. More...
 
Nsegmentgeom_nsegment (const GSERIALIZED *gs)
 Transforms the geometry into a network segment. More...
 
int32_t get_srid_ways ()
 Network-based static point/segments. More...
 
int npoint_cmp (const Npoint *np1, const Npoint *np2)
 Return -1, 0, or 1 depending on whether the first network point is less than, equal, or greater than the second one. More...
 
bool npoint_eq (const Npoint *np1, const Npoint *np2)
 Return true if the first network point is equal to the second one. More...
 
bool npoint_ge (const Npoint *np1, const Npoint *np2)
 Return true if the first network point is greater than or equal to the second one. More...
 
GSERIALIZEDnpoint_geom (const Npoint *np)
 Transforms the network point into a geometry. More...
 
bool npoint_gt (const Npoint *np1, const Npoint *np2)
 Return true if the first network point is greater than the second one. More...
 
uint32 npoint_hash (const Npoint *np)
 Return the 32-bit hash value of a network point. More...
 
uint64 npoint_hash_extended (const Npoint *np, uint64 seed)
 Return the 32-bit hash value of a network point. More...
 
Npointnpoint_in (const char *str, bool end)
 Return a network point from its string representation. More...
 
bool npoint_le (const Npoint *np1, const Npoint *np2)
 Return true if the first network point is less than or equal to the second one. More...
 
bool npoint_lt (const Npoint *np1, const Npoint *np2)
 Return true if the first network point is less than the second one. More...
 
Npointnpoint_make (int64 rid, double pos)
 Construct a network segment from the arguments. More...
 
bool npoint_ne (const Npoint *np1, const Npoint *np2)
 Return true if the first network point is not equal to the second one. More...
 
char * npoint_out (const Npoint *np, int maxdd)
 Return the string representation of a network point. More...
 
double npoint_position (const Npoint *np)
 Return the position of the network point. More...
 
int64 npoint_route (const Npoint *np)
 Return the route of the network point. More...
 
void npoint_set (int64 rid, double pos, Npoint *np)
 Set a network segment from the arguments. More...
 
int npoint_srid (const Npoint *np)
 Return the SRID of the network point. More...
 
Nsegmentnpoint_to_nsegment (const Npoint *np)
 Cast a network point as a network segment. More...
 
GSERIALIZEDnpointarr_geom (Npoint **points, int count)
 Convert a network point array into a geometry. More...
 
int nsegment_cmp (const Nsegment *ns1, const Nsegment *ns2)
 Return -1, 0, or 1 depending on whether the first network segment is less than, equal, or greater than the second one. More...
 
double nsegment_end_position (const Nsegment *ns)
 Return the end position of the network segment. More...
 
bool nsegment_eq (const Nsegment *ns1, const Nsegment *ns2)
 Return true if the first network segment is equal to the second one. More...
 
bool nsegment_ge (const Nsegment *ns1, const Nsegment *ns2)
 Return true if the first network segment is greater than or equal to the second one. More...
 
GSERIALIZEDnsegment_geom (const Nsegment *ns)
 Transforms the network segment into a geometry. More...
 
bool nsegment_gt (const Nsegment *ns1, const Nsegment *ns2)
 Return true if the first network segment is greater than the second one. More...
 
Nsegmentnsegment_in (const char *str)
 Return a network point from its string representation. More...
 
bool nsegment_le (const Nsegment *ns1, const Nsegment *ns2)
 Return true if the first network segment is less than or equal to the second one. More...
 
bool nsegment_lt (const Nsegment *ns1, const Nsegment *ns2)
 Return true if the first network segment is less than the second one. More...
 
Nsegmentnsegment_make (int64 rid, double pos1, double pos2)
 Construct a network segment from the arguments. More...
 
bool nsegment_ne (const Nsegment *ns1, const Nsegment *ns2)
 Return true if the first network segment is not equal to the second one. More...
 
char * nsegment_out (const Nsegment *ns, int maxdd)
 Output function for network segments. More...
 
int64 nsegment_route (const Nsegment *ns)
 Return the route of the network segment. More...
 
void nsegment_set (int64 rid, double pos1, double pos2, Nsegment *ns)
 Set a network segment from the arguments. More...
 
int nsegment_srid (const Nsegment *ns)
 Return the SRID of the network segment. More...
 
double nsegment_start_position (const Nsegment *ns)
 Return the start position of the network segment. More...
 
GSERIALIZEDnsegmentarr_geom (Nsegment **segments, int count)
 Convert a network segment array into a geometry. More...
 
Nsegment ** nsegmentarr_normalize (Nsegment **segments, int *count)
 Normalize the array of temporal segments. More...
 
bool route_exists (int64 rid)
 Return true if the edge table contains a route with the route identifier. More...
 
GSERIALIZEDroute_geom (int64 rid)
 Access the edge table to get the route geometry from corresponding route identifier. More...
 
double route_length (int64 rid)
 Access the edge table to return the route length from the corresponding route identifier. More...