MobilityDB 1.1

◆ lwpointarr_make_trajectory()

LWGEOM * lwpointarr_make_trajectory ( LWGEOM **  lwpoints,
int  count,
interpType  interp 
)

Compute a trajectory from a set of points.

The result is either a linestring or a multipoint depending on whether the interpolation is step/discrete or linear.

Note
The function does not remove duplicate points, that is, repeated points in a multipoint or consecutive equal points in a line string. This should be done in the calling function.
Parameters
[in]lwpointsArray of points
[in]countNumber of elements in the input array
[in]interpInterpolation