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

Spatial functions for temporal circular buffers. More...

#include <postgres.h>
#include <utils/float.h>
#include <meos.h>
#include <meos_geo.h>
#include <meos_internal.h>
#include <meos_internal_geo.h>
#include "geo/tgeo_spatialfuncs.h"
#include "cbuffer/cbuffer.h"

Functions

GSERIALIZEDcbuffer_trav_area (const Cbuffer *cb)
 Return the traversed area of a circular buffer. More...
 
int cbufferarr_circles (const TInstant **instants, int count, GSERIALIZED **result)
 Return the traversed area of a temporal circular buffer with step or discrete interpolation. More...
 
bool circle_type (const GSERIALIZED *gs)
 Return true if the geometry/geography is a circle. More...
 
bool ensure_circle_type (const GSERIALIZED *gs)
 Ensure that the geometry/geography is a circle. More...
 
static int geoarr_remove_duplicates (GSERIALIZED **geoms, int count)
 Remove duplicates from an array of components of the traversed area or a temporal circular buffer. More...
 
static void geoarr_sort (GSERIALIZED **geoms, int count)
 Sort function for trapezoids. More...
 
static int geoarr_sort_cmp (const GSERIALIZED **l, const GSERIALIZED **r)
 Comparator function for components of the traversed area of a temporal circular buffer, which can be points, circles, or trapezoids. More...
 
GSERIALIZEDgeocircle_make (double x, double y, double radius, int32_t srid)
 Return a circle created from a central point and a radius. More...
 
LWGEOMlwcircle_make (double x, double y, double radius, int32_t srid)
 Return a circle created from a central point and a radius. More...
 
LWCIRCSTRINGlwcircstring_from_lwpointarray (int32_t srid, uint32_t npoints, LWPOINT **points)
 
GSERIALIZEDtcbuffer_trav_area (const Temporal *temp, bool merge_union)
 Return the traversed area of a temporal circular buffer. More...
 
GSERIALIZEDtcbufferinst_trav_area (const TInstant *inst)
 Return the traversed area of a temporal circular buffer instant. More...
 
GSERIALIZEDtcbuffersegm_trav_area (const TInstant *inst1, const TInstant *inst2)
 Return the traversed area of a temporal circular buffer segment with linear interpolation. More...
 
int tcbufferseq_discstep_trav_area (const TSequence *seq, GSERIALIZED **result)
 Return the traversed area of a temporal circular buffer sequence with discrete or step interpolation. More...
 
int tcbufferseq_linear_trav_area (const TSequence *seq, GSERIALIZED **result)
 Return the traversed area of a temporal circular buffer sequence with linear interpolation (iterator function) More...
 
GSERIALIZEDtcbufferseq_trav_area (const TSequence *seq, bool merge_union)
 Return the traversed area of a temporal circular buffer sequence. More...
 
int tcbufferseqset_linear_trav_area (const TSequenceSet *ss, GSERIALIZED **result)
 Return the traversed area of a temporal circular buffer sequence set with linear interpolation. More...
 
int tcbufferseqset_step_trav_area (const TSequenceSet *ss, GSERIALIZED **result)
 Return the traversed area of a temporal circular buffer sequence set with step interpolation. More...
 
GSERIALIZEDtcbufferseqset_trav_area (const TSequenceSet *ss, bool merge_union)
 Return the traversed area of a temporal circular buffer. More...
 
LWGEOMtrapezoid_make (const Cbuffer *c1, const Cbuffer *c2)
 Return a trapezoid created from two circular buffers. More...
 

Detailed Description

Spatial functions for temporal circular buffers.