Compute a trajectory from a set of points.
The result is either a line or a multipoint depending on whether the interpolation is step or linear