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

Basic functions for temporal network points. More...

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

Functions

bool common_rid_tnpoint_npoint (const Temporal *temp, const Npoint *np)
 Return true if temporal network point and a network point have a common route identifier. More...
 
bool common_rid_tnpoint_npointset (const Temporal *temp, const Set *s)
 Return true if temporal network point and a network point have a common route identifier. More...
 
bool ensure_same_rid_tnpointinst (const TInstant *inst1, const TInstant *inst2)
 Ensure that two temporal network point instants have the same route identifier. More...
 
bool ensure_valid_tnpoint_geo (const Temporal *temp, const GSERIALIZED *gs)
 Ensure the validity of a temporal network point and a geometry. More...
 
bool ensure_valid_tnpoint_npoint (const Temporal *temp, const Npoint *np)
 Return true if a temporal network point and a network point are valid for operations. More...
 
bool ensure_valid_tnpoint_npointset (const Temporal *temp, const Set *s)
 Return true if a temporal network point and a network point set are valid for operations. More...
 
bool ensure_valid_tnpoint_stbox (const Temporal *temp, const STBox *box)
 Ensure the validity of a temporal network point and a spatiotemporal box. More...
 
bool ensure_valid_tnpoint_tnpoint (const Temporal *temp1, const Temporal *temp2)
 Return true if a temporal network point and a network point are valid for operations. More...
 
Setnpointset_routes (const Set *s)
 Return the routes of a network point set. More...
 
Temporaltgeompoint_to_tnpoint (const Temporal *temp)
 Convert a temporal geometry point into a temporal network point. More...
 
TInstanttgeompointinst_tnpointinst (const TInstant *inst)
 Convert a temporal geometry point into a temporal network point. More...
 
TSequencetgeompointseq_tnpointseq (const TSequence *seq)
 Convert a temporal geometry point into a temporal network point. More...
 
TSequenceSettgeompointseqset_tnpointseqset (const TSequenceSet *ss)
 Convert a temporal geometry point into a temporal network point. More...
 
Temporaltnpoint_at_npoint (const Temporal *temp, const Npoint *np)
 Restrict a temporal network point to a network point. More...
 
Temporaltnpoint_at_npointset (const Temporal *temp, const Set *s)
 Restrict a temporal network point to a set of network points. More...
 
Temporaltnpoint_in (const char *str)
 Return a temporal network point from its Well-Known Text (WKT) representation. More...
 
Temporaltnpoint_minus_npoint (const Temporal *temp, const Npoint *np)
 Restrict a temporal network point to the complement of a network point. More...
 
Temporaltnpoint_minus_npointset (const Temporal *temp, const Set *s)
 Restrict a temporal network point to the complement of a set of network points. More...
 
char * tnpoint_out (const Temporal *temp, int maxdd)
 Return the Well-Known Text (WKT) representation of a temporal network point. More...
 
Nsegment ** tnpoint_positions (const Temporal *temp, int *count)
 Return the network segments covered by the temporal network point @csqlfn Tnpoint_positions() More...
 
Temporaltnpoint_restrict_npoint (const Temporal *temp, const Npoint *np, bool atfunc)
 Restrict a temporal network point to (the complement of) a network point. More...
 
Temporaltnpoint_restrict_npointset (const Temporal *temp, const Set *s, bool atfunc)
 Restrict a temporal network point to (the complement of) a set of network points. More...
 
int64 tnpoint_route (const Temporal *temp)
 Return the single route of a temporal network point. More...
 
Settnpoint_routes (const Temporal *temp)
 Return the array of routes of a temporal network point @csqlfn Tnpoint_routes() More...
 
Temporaltnpoint_to_tgeompoint (const Temporal *temp)
 Convert a temporal network point into a temporal geometry point. More...
 
TInstanttnpointinst_in (const char *str)
 Return a temporal network point instant from its Well-Known Text (WKT) representation. More...
 
Nsegment ** tnpointinst_positions (const TInstant *inst)
 Return the network segments covered by the temporal network point. More...
 
int64 tnpointinst_route (const TInstant *inst)
 Return the route of the temporal network point. More...
 
Settnpointinst_routes (const TInstant *inst)
 Return the routes of a temporal network point. More...
 
TInstanttnpointinst_tgeompointinst (const TInstant *inst)
 Convert a temporal network point into a temporal geometry point. More...
 
Settnpointseq_cont_routes (const TSequence *seq)
 Return the routes of a temporal network point. More...
 
Settnpointseq_disc_routes (const TSequence *seq)
 Return the routes of a temporal network point. More...
 
TSequencetnpointseq_in (const char *str, interpType interp UNUSED)
 Return a temporal network point sequence from its Well-Known Text (WKT) representation. More...
 
Nsegmenttnpointseq_linear_positions (const TSequence *seq)
 Return the network segments covered by the temporal network point. More...
 
Nsegment ** tnpointseq_positions (const TSequence *seq, int *count)
 Return the network segments covered by the temporal network point. More...
 
Nsegment ** tnpointseq_step_positions (const TSequence *seq, int *count)
 Return the network segments covered by the temporal network point. More...
 
TSequencetnpointseq_tgeompointseq_cont (const TSequence *seq)
 Convert a temporal network point into a temporal geometry point. More...
 
TSequencetnpointseq_tgeompointseq_disc (const TSequence *seq)
 Convert a temporal network point into a temporal geometry point. More...
 
TSequenceSettnpointseqset_in (const char *str)
 Return a temporal network point sequence set from its Well-Known Text (WKT) representation. More...
 
Nsegment ** tnpointseqset_linear_positions (const TSequenceSet *ss, int *count)
 Return the network segments covered by the temporal network point. More...
 
Nsegment ** tnpointseqset_positions (const TSequenceSet *ss, int *count)
 Return the network segments covered by the temporal network point. More...
 
Settnpointseqset_routes (const TSequenceSet *ss)
 Return the routes of a temporal network point. More...
 
Nsegment ** tnpointseqset_step_positions (const TSequenceSet *ss, int *count)
 Return the network segments covered by the temporal network point. More...
 
TSequenceSettnpointseqset_tgeompointseqset (const TSequenceSet *ss)
 Convert a temporal network point into a temporal geometry point. More...
 

Detailed Description

Basic functions for temporal network points.