<div dir="ltr"><div>Hi,</div><div><br></div><div>I was thinking about how to better implement this feature for QGIS server (but it does not need to be restricted to the server).</div><div><br></div><div>The WFS3 specs covers pretty much all use cases: you can have features with a single date/datetime temporal property and a set of date/datetime properties, the latter case can (not "must"!)  be used to define one (or many) date/datetime intervals.</div><div></div><br><div>Now, the specs say that it's up to the server to decide if only a single property has to be considered when querying or if multiple properties have to be combined together to create one (or many) intervals. But since we code the server it means that it's up to us to decide how to handle it.<br></div><div><br></div><div>Note that the conditions need to be AND(ed) and unless properties values are equal this does make sense only when multiple properties are combined to form intervals.</div><div><br></div><div>So, the question is how to model this in QGIS?</div><div><br></div><div>Since this information may spread over multiple fields, I think it should go into the QgsVectorLayer class (or some separate temporal settings companion class/struct).<br></div><div><br></div><div><div><br></div><div><div>We can also think to handle "open" intervals, where only one of the lower/upper values are defined. <br></div></div></div><div><br></div><div>I was thinking at a new struct to hold a pair of field names and their role within the interval and store them as QgsVectorLayer property<br></div><div><br></div><div>To represent a single point-in-time value we could still use an interval where begin and end are the same field.</div><div><br></div><div>Any idea or comment?</div><div></div><div><br></div><div>(or maybe we do need a QEP?)<br></div><div><br></div><div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>