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

◆ tpointseq_linear_at_geom()

static TSequenceSet * tpointseq_linear_at_geom ( const TSequence seq,
const GSERIALIZED gs 
)
static

Return a temporal point sequence with linear interpolation restricted to a geometry.

The computation is based on the PostGIS function ST_Intersection which delegates the computation to GEOS. The geometry must be in 2D. When computing the intersection the Z values of the temporal point must be dropped since the Z values "are copied, averaged or interpolated" as stated in https://postgis.net/docs/ST_Intersection.html After this computation, the Z values are recovered by restricting the original sequence to the time span of the 2D result.

Precondition
The arguments have the same SRID, the geometry is 2D and is not empty. This is verified in tgeo_restrict_geom