MobilityDB 1.1

◆ tpointseq_minus_geometry()

static TSequence ** tpointseq_minus_geometry ( const TSequence seq,
const GSERIALIZED gs,
int *  count 
)
static

Restrict a temporal sequence point to the complement of a geometry.

It is not possible to use a similar approach as for tpointseq_at_geometry1 where instead of computing the intersections we compute the difference since in PostGIS the following query

select st_astext(st_difference(geometry 'Linestring(0 0,3 3)',
geometry 'MultiPoint((1 1),(2 2),(3 3))'))

returns LINESTRING(0 0,3 3). Therefore we compute tpointseq_at_geometry1 and then compute the complement of the value obtained

Parameters
[in]seqTemporal point sequence
[in]gsGeometry
[out]countNumber of elements in the resulting array