MobilityDB 1.1
Functions
tnpoint_spatialfuncs.c File Reference
#include "npoint/tnpoint_spatialfuncs.h"
#include <assert.h>
#include <float.h>
#include <math.h>
#include <meos.h>
#include <meos_internal.h>
#include "point/pgis_call.h"
#include "point/tpoint_spatialfuncs.h"
#include "point/tpoint_boxops.h"
#include "npoint/tnpoint.h"
#include "npoint/tnpoint_static.h"
#include "npoint/tnpoint_distance.h"
#include "npoint/tnpoint_tempspatialrels.h"
Include dependency graph for tnpoint_spatialfuncs.c:

Functions

void ensure_same_rid_tnpointinst (const TInstant *inst1, const TInstant *inst2)
 Ensure that two temporal network point instants have the same route identifier. More...
 
void ensure_same_srid_tnpoint_stbox (const Temporal *temp, const STBox *box)
 Spatial functions for temporal network points. More...
 
bool npoint_same (const Npoint *np1, const Npoint *np2)
 Determines the spatial equality for network points. More...
 
Temporaltnpoint_azimuth (const Temporal *temp)
 Temporal azimuth of a temporal network point. More...
 
Temporaltnpoint_cumulative_length (const Temporal *temp)
 Cumulative length traversed by a temporal network point. More...
 
GSERIALIZEDtnpoint_geom (const Temporal *temp)
 Return the geometry covered by a temporal network point. More...
 
double tnpoint_length (const Temporal *temp)
 Length traversed by a temporal network point. More...
 
Temporaltnpoint_restrict_geometry (const Temporal *temp, const GSERIALIZED *geo, bool atfunc)
 Restrict a temporal network point to (the complement of) a geometry. More...
 
Temporaltnpoint_speed (const Temporal *temp)
 Speed of a temporal network point. More...
 
int tnpoint_srid (const Temporal *temp)
 Return the SRID of a temporal network point. More...
 
Datum tnpoint_twcentroid (const Temporal *temp)
 Return the time-weighed centroid of a temporal network point. More...
 
GSERIALIZEDtnpointinst_geom (const TInstant *inst)
 Return the geometry covered by a temporal network point. More...
 
int tnpointinst_srid (const TInstant *inst)
 Return the SRID of a temporal network point of subtype instant. More...
 
static TInstant ** tnpointsegm_azimuth1 (const TInstant *inst1, const TInstant *inst2, int *count)
 Temporal azimuth of two temporal network point instants. More...
 
bool tnpointsegm_intersection_value (const TInstant *inst1, const TInstant *inst2, Datum value, TimestampTz *t)
 Return true if a segment of a temporal network point value intersects a base value at the timestamp. More...
 
static TSequenceSettnpointseq_azimuth (const TSequence *seq)
 Temporal azimuth of a temporal network point of sequence subtype. More...
 
static int tnpointseq_azimuth2 (const TSequence *seq, TSequence **result)
 Temporal azimuth of a temporal network point of sequence subtype. More...
 
static TSequencetnpointseq_cumulative_length (const TSequence *seq, double prevlength)
 Return the cumulative length traversed by a temporal point. More...
 
GSERIALIZEDtnpointseq_geom (const TSequence *seq)
 Return the geometry covered by a temporal network point. More...
 
double tnpointseq_length (const TSequence *seq)
 Length traversed by a temporal network point. More...
 
static TSequencetnpointseq_speed (const TSequence *seq)
 Speed of a temporal network point. More...
 
static Npoint ** tnpointseq_step_npoints (const TSequence *seq, int *count)
 Return the network points covered by a temporal network point. More...
 
static Datum tnpointseqsegm_trajectory (const Npoint *np1, const Npoint *np2)
 Compute the trajectory of two instants. More...
 
static TSequenceSettnpointseqset_azimuth (const TSequenceSet *ss)
 
static TSequenceSettnpointseqset_cumulative_length (const TSequenceSet *ss)
 Cumulative length traversed by a temporal network point. More...
 
GSERIALIZEDtnpointseqset_geom (const TSequenceSet *ss)
 Return the geometry covered by a temporal network point. More...
 
double tnpointseqset_length (const TSequenceSet *ss)
 Length traversed by a temporal network point. More...
 
static TSequenceSettnpointseqset_speed (const TSequenceSet *ss)
 Speed of a temporal network point. More...
 
static Npoint ** tnpointseqset_step_npoints (const TSequenceSet *ss, int *count)
 Return the network points covered by a temporal network point. More...
 
static TSequencetsequence_assemble_instants (TInstant ***instants, int *countinsts, int totalinsts, int from, int to, bool lower_inc, TimestampTz last_time)
 Helper function to make a sequence from the set of instants computed so far. More...