<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>Hi Jannis,</div><div>While constructing a trajectory, you can skip the nulls (either the timestamp or the geography). The interpolation will automatically be computed using the values immediately before and after the nulls. Here is an example:</div><div><br></div><div><pre class="gmail-programlisting">CREATE TABLE Ships(MMSI, Trip, SOG, COG) AS
SELECT MMSI,
tgeompointseq(array_agg(tgeompointinst( ST_Transform(Geom, 25832), T) ORDER BY T) FILTER (WHERE T IS NOT NULL)),
tfloatseq(array_agg(tfloatinst(SOG, T) ORDER BY T) FILTER (WHERE SOG IS NOT NULL))
FROM AISInputFiltered
GROUP BY MMSI;<br><br></pre><pre class="gmail-programlisting">Best regards,<br></pre><pre class="gmail-programlisting">Mahmoud<br></pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 21, 2021 at 6:38 PM Jannis R <<a href="mailto:mail@jannisr.de">mail@jannisr.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hey everyone!<br>
<br>
is it possible to construct a `tgeogpointi` from a list of `geography` + `timestamptz` items if some of the items don't have a `timestamptz`? or to put it another way: i have a geospatial + temporal trajectory, where I only know the temporal value of *some* of the points.<br>
<br>
ideally, i would like mobilitydb to interpolate between them on the fly. do i understand correctly that there's no such feature?<br>
<br>
– jannis<br>
_______________________________________________<br>
Mobilitydb-users mailing list<br>
<a href="mailto:Mobilitydb-users@lists.osgeo.org" target="_blank">Mobilitydb-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mobilitydb-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mobilitydb-users</a><br>
</blockquote></div>