<div dir="ltr"><div class="gmail_default" style="font-size:small">Thanks Victor!</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 5, 2016 at 1:54 PM, Victor Olaya <span dir="ltr"><<a href="mailto:volayaf@gmail.com" target="_blank">volayaf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Anita, Mathieu<br>
<br>
I added both of your requests and it should be possible now to use<br>
tables on both "execute SQL" and "build virtual vector" algorithms<br>
<br>
Let me know if you try it (it is on master)<br></blockquote><div><br></div><div><br></div><div><div class="gmail_default" style="font-size:small">As far as I can see OGR's Execute SQL takes only one input layer/table. Therefore it's not suitable for the task of joining a vector layer with a table.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">QGIS' Build virtual vector takes multiple inputs but I'm not sure what it does with them. The help text is a bit short: "<span style="color:rgb(102,102,102)">This algorithm creates a virtual layer that contains a set of vector layer." That does not sound like it will do the job either. </span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(102,102,102)"><br></span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(102,102,102)">QGIS' Execute SQL seems to allow multiple inputs but doesn't list tables and I didn't see any changes to this algorithm in your recent commits but maybe I missed something?</span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(102,102,102)"><br></span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(102,102,102)">Note: I'm running qgis-dev from OSGeo4W which is probably not up to date with master.</span></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The SQL statement I want to execute (and which runs well in Layer | Add Layer | Add Virtual Layer) is:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">select s_out.y1_statefips, s_out.y2_statefips,</div><div class="gmail_default"> st_centroid(f.geometry)</div><div class="gmail_default">from fips as f</div><div class="gmail_default">join stateoutflow1415 as s_out</div><div class="gmail_default" style="font-size:small">on f.fips = s_out.y1_statefips</div><br></div><div><div class="gmail_default" style="font-size:small">where fips is a polygon layer and stateoutflow1415 is a CSV.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Best wishes,</div><div class="gmail_default" style="font-size:small">Anita</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"></div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Cheers<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
2016-12-05 11:07 GMT+01:00 Mathieu Pellerin <<a href="mailto:nirvn.asia@gmail.com">nirvn.asia@gmail.com</a>>:<br>
> Victor,<br>
><br>
> I was looking into this; it'd be nice for the "build vector layer" algorithm<br>
> would support/show geometryless layers in the parametermultiinput panel.<br>
> AFAIK, geometryless layers aren't (yet? :) ) supported by the<br>
> parametermultiinput.<br>
><br>
> Math<br>
><br>
> On Mon, Dec 5, 2016 at 2:51 PM, Victor Olaya <<a href="mailto:volayaf@gmail.com">volayaf@gmail.com</a>> wrote:<br>
>><br>
>> No, there is no such functionality AFAIK, but it should be easy to add, i<br>
>> think<br>
>><br>
>> Can you open a feature request?<br>
>><br>
>> Also, the execute SQL algorithm can be modified to accept non-spatial<br>
>> tables. That makes sense to me<br>
>><br>
>> Cheers<br>
>><br>
>> 2016-12-04 22:28 GMT+01:00 Anita Graser <<a href="mailto:anitagraser@gmx.at">anitagraser@gmx.at</a>>:<br>
>> > Hi,<br>
>> ><br>
>> > Since the user list doesn't seen to have an answer, I'd like to ask<br>
>> > here:<br>
>> > Is there an equivalent to the "add virtual layer" functionality in the<br>
>> > Processing toolbox?<br>
>> ><br>
>> > I want to join multiple csv files to a vector layer (and at the same<br>
>> > time<br>
>> > build a new geometry WKT). This seems most easily done with a virtual<br>
>> > layer.<br>
>> > But I need to script this workflow.<br>
>> ><br>
>> > In the Processing toolbox, I only found the "execute SQL" tool but it<br>
>> > does<br>
>> > not allow selection of non-spatial tables as input.<br>
>> ><br>
>> > Best wishes,<br>
>> > Anita<br>
>> ><br>
>> ><br>
>> ><br>
>> > ______________________________<wbr>_________________<br>
>> > Qgis-developer mailing list<br>
>> > <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>> > List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
>> > Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
>> ______________________________<wbr>_________________<br>
>> Qgis-developer mailing list<br>
>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
>> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
><br>
><br>
</div></div></blockquote></div><br></div></div>