<div dir="ltr">Hey all,<div><br></div><div>The SQLite virtual table thing and these virtual fields are two different beasts.  Both should be features.  Virtual columns should be a easy-ish one so lets start with that.   The advantage of using SQLite virtual tables is it would give us a high level SQL language with all the spatial functions and the ability to do joins over any QGIS layer without too much work on our side.  No point reinventing the wheel.   It can be slow for complex things but if you are doing that you should move to a proper database engine and store all your data in there.</div>

<div><br></div><div>- Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 4, 2014 at 7:09 AM, Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias.kuhn@gmx.ch" target="_blank">matthias.kuhn@gmx.ch</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Mon 03 Mär 2014 17:55:06 CET, Denis Rouzaud wrote:<br>
><br>
> On 03. 03. 14 16:42, Matthias Kuhn wrote:<br>
>> On a similar note see this recent thread [1] which should be able to<br>
>> provide this kind of functionality. I don't know if Nahtan has<br>
>> already started to implement his POC.<br>
> What would be the advantage of such a beast?<br>
> Is it the caching?<br>
<br>
</div>Not sure about dis- and atvantages. I just thought I'd throw it in :-)<br>
<br>
Honestly: injecting expression fields at the vectorlayeriterator level<br>
sounds like a good and flexible approach. There are quite a few tools<br>
which still operate on vlayer.provider.getFeatures() etc. Those will<br>
unfortunately not be able to benefit from such an approach.<br>
The virtual layer approach discussed in the other thread is more like a<br>
Swiss army knife for a couple of different things.<br>
<br>
I didn't spend much thoughts on all of this, please read it with a<br>
pinch of salt.<br>
<br>
Best<br>
<span class="HOEnZb"><font color="#888888">Matthias<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div></div></blockquote></div><br></div>