<div dir="ltr"><div><div><div><div>Hi again<br><br></div>I have seen there is a bug in the current versions of the script. I need to adapt them ( Processing has changed a bit since I write them)<br><br></div>If you cannot wait, juste replace the following line in the script<br><br>from processing.core.VectorWriter import VectorWriter<br><br></div>by<br><br>from processing.tools.vector import VectorWriter<br><br><br></div>It must do the job<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-08 11:46 GMT+02:00 kimaidou <span dir="ltr"><<a href="mailto:kimaidou@gmail.com" target="_blank">kimaidou@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi Spencer<br><br></div>I have created a script to do so. You must been able to get it via the Processing Toolbox : Scripts / Tools / Get scripts from online collection<br><br></div>The script is called "Create vector layer from PostGIS table"<br></div>You also have one calle "Create vector layer from SQL query" which allows to create a vector layer from a query<br><br></div>Cheers<br></div>MichaĆ«l<br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2015-10-08 3:54 GMT+02:00 Spencer Gardner <span dir="ltr"><<a href="mailto:spencergardner@gmail.com" target="_blank">spencergardner@gmail.com</a>></span>:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">I'm writing a processing routine for which I want to send a query, receive a table from PostGIS in return, and then do something with the results. Is there an easy way to do this in Processing?</div>
<br></span>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div>
</blockquote></div><br></div>