MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
tnpoint_spatialfuncs.c File Reference

Spatial functions for temporal network points. More...

#include "npoint/tnpoint_spatialfuncs.h"
#include <assert.h>
#include <meos.h>
#include <meos_internal_geo.h>
#include "temporal/type_util.h"
#include "geo/tgeo_spatialfuncs.h"
#include "npoint/tnpoint.h"

Functions

bool npoint_same (const Npoint *np1, const Npoint *np2)
 Return true if two network points are approximately equal with respect to an epsilon value. More...
 
Npointnpointsegm_interpolate (const Npoint *start, const Npoint *end, long double ratio)
 Return a network point interpolated from a network point segment with respect to a fraction of its total length. More...
 
long double npointsegm_locate (const Npoint *start, const Npoint *end, const Npoint *value)
 Return a float in (0,1) if a network point segment intersects a network point, return -1.0 if the network point is not located in the segment or if it is approximately equal to the start or the end valuess. More...
 
Temporaltnpoint_at_geom (const Temporal *temp, const GSERIALIZED *gs)
 Return a temporal network point restricted to a geometry. More...
 
Temporaltnpoint_at_stbox (const Temporal *temp, const STBox *box, bool border_inc)
 Return a temporal network point restricted to a geometry. More...
 
Temporaltnpoint_cumulative_length (const Temporal *temp)
 Cumulative length traversed by a temporal network point. More...
 
double tnpoint_length (const Temporal *temp)
 Length traversed by a temporal network point. More...
 
Temporaltnpoint_minus_geom (const Temporal *temp, const GSERIALIZED *gs)
 Return a temporal point restricted to (the complement of) a geometry. More...
 
Temporaltnpoint_minus_stbox (const Temporal *temp, const STBox *box, bool border_inc)
 Return a temporal point restricted to (the complement of) a geometry. More...
 
Temporaltnpoint_restrict_geom (const Temporal *temp, const GSERIALIZED *gs, bool atfunc)
 Return a temporal network point restricted to (the complement of) a geometry. More...
 
Temporaltnpoint_restrict_stbox (const Temporal *temp, const STBox *box, bool border_inc, bool atfunc)
 Return a temporal network point restricted to (the complement of) a spatiotemporal box. More...
 
Temporaltnpoint_speed (const Temporal *temp)
 Speed of a temporal network point. More...
 
GSERIALIZEDtnpoint_trajectory (const Temporal *temp)
 Return the geometry covered by a temporal network point. More...
 
GSERIALIZEDtnpoint_twcentroid (const Temporal *temp)
 Return the time-weighed centroid of a temporal network point. More...
 
GSERIALIZEDtnpointinst_trajectory (const TInstant *inst)
 Return the trajectory of a temporal network point. More...
 
static TSequencetnpointseq_cumulative_length (const TSequence *seq, double prevlength)
 Return the cumulative length traversed by a temporal point. More...
 
static Npoint ** tnpointseq_discstep_npoints (const TSequence *seq, int *count)
 Return the network points 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 @csqlfn Tnpoint_speed() More...
 
GSERIALIZEDtnpointseq_trajectory (const TSequence *seq)
 Return the trajectory a temporal network point. More...
 
static TSequenceSettnpointseqset_cumulative_length (const TSequenceSet *ss)
 Cumulative length traversed 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 pointers to the network points covered by a temporal network point. More...
 
GSERIALIZEDtnpointseqset_trajectory (const TSequenceSet *ss)
 Return the trajectory of a temporal network point. More...
 

Detailed Description

Spatial functions for temporal network points.