<div dir="ltr">Hi Sandro,<div>Yes I can but, where?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-17 7:07 GMT-02:00 Sandro Santilli <span dir="ltr"><<a href="mailto:strk@kbt.io" target="_blank">strk@kbt.io</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Frederico, would you be up to turn this into a pull request ?<br>
<br>
There's now a test for connection string building in<br>
python/plugins/processing/<wbr>tests/GdalAlgorithmsTest.py<br>
where you could add a test for it.<br>
<br>
--strk;<br>
<div class="HOEnZb"><div class="h5"><br>
On Sat, Oct 15, 2016 at 08:29:57PM -0300, Frederico dos Santos Soares wrote:<br>
> --Sorted out<br>
><br>
> Sharing with the list the solution found.<br>
><br>
> In a current work process, I need to run several models using the<br>
> "processing" as "[OGR] Import into PostGIS" is the only tool that allows<br>
> the output of the models do "append" on a table of Postgres / PostGIS, I<br>
> had to solve the problem in the script.<br>
><br>
> Recalling I am using QGIS 2.8<br>
><br>
> The reference that I used to solve the problem, comes from the same tool in<br>
> version 2.14. Clarify that in version 2.14 Import into postgis did not work<br>
> if executed within a model, at least not work for me, I believe we have<br>
> another bug there.<br>
><br>
> Returning. The "Import into postgis" (for available connections) works in<br>
> ogr2ogrtopostgislist.py file in the ... \ QGIS Wien \ apps \ qgis-ltr \<br>
> python \ plugins \ processing \ algs \ gdal<br>
><br>
> The file in its original version builds the command of ogr2ogr with the<br>
> schema parameter "-lco" + schema outside the database configuration<br>
> parameters: -> ... -append -nlt MULTILINESTRING -lco SCHEMA = teste_geo ...<br>
><br>
> I changed the file so that the schema parameter was written into the<br>
> connection as follows "active_schema =" + schema -> PG: "host = localhost<br>
> port = 5432 dbname = gis password = xxx active_schema=temp<br>
><br>
> And voila it worked!<br>
><br>
> Attached the file, marked with # rows that were changed.<br>
><br>
> I hope that helps someone want to use this tool in their models. I'm using<br>
> it's pretty cool.<br>
><br>
> Best regards.<br>
><br>
> --<br>
><br>
> Frederico dos Santos Soares<br>
> Geógrafo<br>
> 55 61 8416 0105<br>
> <a href="mailto:fssunb@gmail.com">fssunb@gmail.com</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br>Frederico dos Santos Soares<br>Geógrafo<br>55 61 8416 0105<br><a href="mailto:fssunb@gmail.com" target="_blank">fssunb@gmail.com</a><br></div></div>
</div>