<div dir="ltr">Hi Richard,<div><br></div><div>It seems to me this should be possible using:</div><div><br></div><div>1. Two tables:</div><div>- Points</div><div>- Measurements (Timestamp, Measured attribute)</div><div><br></div><div>2.  A view (Points LEFT JOIN Measurements)</div><div><br></div><div>Timescale as proposed by Tim can be added to the mix to optimize things if you have additional requirements for time-specific aggregates or optimized storage.</div><div><br></div><div>Matthias</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 4, 2022 at 3:18 PM Richard Duivenvoorde via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</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">On 9/4/22 14:35, Tim Sutton wrote:<br>
> Hi Richard<br>
> <br>
> Don’t people normally use things like <a href="https://www.timescale.com/" rel="noreferrer" target="_blank">https://www.timescale.com/</a> <<a href="https://www.timescale.com/?utm_source=timescaledb-paid&utm_medium=google-search&utm_campaign=brand-2022&utm_content=homepage&utm_term=timescale-postgres&gclid=EAIaIQobChMIspXn6JL7-QIVOpBoCR3QLQf8EAAYASAAEgL09PD_BwE" rel="noreferrer" target="_blank">https://www.timescale.com/?utm_source=timescaledb-paid&utm_medium=google-search&utm_campaign=brand-2022&utm_content=homepage&utm_term=timescale-postgres&gclid=EAIaIQobChMIspXn6JL7-QIVOpBoCR3QLQf8EAAYASAAEgL09PD_BwE</a>><br>
> <br>
> For this? In any case some of our clients that are doing things like vehicle tracking are…<br>
<br>
Yes to *store* it, but my point is: given 2 points with 100 timesteps, QGIS will create 200 features for it to be able to display it...<br>
So to 'view' that data in (Q)GIS, you have to flatten it to a 'table' with 200 features...<br>
<br>
While the actual interesting part is the value and the time, NOT those 2 xy fields... (the case of moving vehicles is slightly different, there the xy values also change)...<br>
Maybe I'm in the wrong crowd here to tell the geoms are not so much of interest in my case ;-)<br>
<br>
I'm looking for a way/model (non tabular) that QGIS creates 2 geometries/features, and then will style/paint it based on the timestamps and values<br>
<br>
The use case here: having 5000 sensors in Europe, having 500.000.000 measurements in total, I don not want to create 500.000.000 features.<br>
<br>
I'd preferred to create those 5000 features, and then get the geom-id/value/timestamp for a given filter range and repaint my canvas.<br>
<br>
Something like 'dynamic' joins: the geometries will stay the same, but the 'joined' columns/table will change based on the 'temporal filter' requested.<br>
<br>
Sorry if I can not make myself more clear (or making it more complex that it maybe is...) :-)<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>

<br>
<div style="text-align:left"><a href="https://qfield.org/get/" target="_blank"><img src="https://www.opengis.ch/wp-content/uploads/2022/04/Qfield_Banner_email.png" alt="https://qfield.org/get/"></a><span style="font-family:Arial"><a><br></a></span></div><div style="text-align:left"><span style="font-family:Arial">QFIELD 2.0 IS HERE!<span style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><font size="3"> </font></span>- Hold the power of QGIS in your hand</span><span style="font-family:Arial"> - <a href="https://www.opengis.ch/2022/04/05/qfield-2-0-is-here/" target="_blank">learn more</a> - <a href="https://qfield.org/get" target="_blank">get it now</a><br></span></div>