MobilityDB 1.3
Loading...
Searching...
No Matches

◆ spatialrel_tgeo_geo()

static int spatialrel_tgeo_geo ( const Temporal temp,
const GSERIALIZED gs,
Datum  param,
varfunc  func,
int  numparam,
bool  invert 
)
static

Generic spatial relationship for the trajectory or traversed area of a temporal geo and a geometry.

The function computes the function passed as parameter with the trajectory or the traversed area of the temporal geometry and the geometry

Parameters
[in]tempTemporal geo
[in]gsGeometry
[in]paramParameter
[in]funcPostGIS function to be called
[in]numparamNumber of parameters of the function
[in]invertTrue if the arguments should be inverted
Returns
On error return -1
Note
Since some GEOS versions do not support geometry collections, the function iterates for each geometry of the collection and returns when the function is true for one of them.