![]() |
MobilityDB 1.3
|
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... | |
Npoint * | npointsegm_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... | |
Temporal * | tnpoint_at_geom (const Temporal *temp, const GSERIALIZED *gs) |
Return a temporal network point restricted to a geometry. More... | |
Temporal * | tnpoint_at_stbox (const Temporal *temp, const STBox *box, bool border_inc) |
Return a temporal network point restricted to a geometry. More... | |
Temporal * | tnpoint_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... | |
Temporal * | tnpoint_minus_geom (const Temporal *temp, const GSERIALIZED *gs) |
Return a temporal point restricted to (the complement of) a geometry. More... | |
Temporal * | tnpoint_minus_stbox (const Temporal *temp, const STBox *box, bool border_inc) |
Return a temporal point restricted to (the complement of) a geometry. More... | |
Temporal * | tnpoint_restrict_geom (const Temporal *temp, const GSERIALIZED *gs, bool atfunc) |
Return a temporal network point restricted to (the complement of) a geometry. More... | |
Temporal * | tnpoint_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... | |
Temporal * | tnpoint_speed (const Temporal *temp) |
Speed of a temporal network point. More... | |
GSERIALIZED * | tnpoint_trajectory (const Temporal *temp) |
Return the geometry covered by a temporal network point. More... | |
GSERIALIZED * | tnpoint_twcentroid (const Temporal *temp) |
Return the time-weighed centroid of a temporal network point. More... | |
GSERIALIZED * | tnpointinst_trajectory (const TInstant *inst) |
Return the trajectory of a temporal network point. More... | |
static TSequence * | tnpointseq_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 TSequence * | tnpointseq_speed (const TSequence *seq) |
Speed of a temporal network point @csqlfn Tnpoint_speed() More... | |
GSERIALIZED * | tnpointseq_trajectory (const TSequence *seq) |
Return the trajectory a temporal network point. More... | |
static TSequenceSet * | tnpointseqset_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 TSequenceSet * | tnpointseqset_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... | |
GSERIALIZED * | tnpointseqset_trajectory (const TSequenceSet *ss) |
Return the trajectory of a temporal network point. More... | |
Spatial functions for temporal network points.