<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Franklin Gothic Book";
        panose-1:2 11 5 3 2 1 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.E-postmall17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1159612821;
        mso-list-type:hybrid;
        mso-list-template-ids:596379324 69009409 69009411 69009413 69009409 69009411 69009413 69009409 69009411 69009413;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><a name="T_Default_New"><span lang="EN-GB">Hi all!<br>
I’m trying the new, relatively, features of the processing toolbox, using the graphical modeler and to run the model from command line. Most works fine but there are some things that I can’t get working. Either I don’t know how to configure it properly, or
 it is a bug or feature request. The documentation is quite short on this subject and I haven’t found any more good examples. My test model reads two vector feature sources, buffer one of the, clip them against each other, write a shapefile, export to PostgreSQL
 as well, run some SQL and saves a log to a file. This works fine in graphical mode. In command line I have a few problems:<o:p></o:p></span></a></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><span style="mso-bookmark:T_Default_New"><![if !supportLists]><span lang="EN-GB" style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]><span lang="EN-GB">Works fine with shape files but how to read directly from a database table? In graphical mode I can browse for a table and use it like
</span></span><span style="mso-bookmark:T_Default_New"><span lang="EN-GB" style="font-family:"Courier New"">'postgres://dbname=\'geodata\' host=sbkgeodata port=5432 user=\'user\' password=\'pwd\' sslmode=disable key=\'UNIK\' estimatedmetadata=true srid=3008
 type=PolygonZ checkPrimaryKeyUnicity=\'1\' table=\"pri\".\"byggnad_\" (geom)' </span>
</span><span style="mso-bookmark:T_Default_New"><span lang="EN-GB">but I don’t know how to write it as a parameter in command line.</span></span><span style="mso-bookmark:T_Default_New"><span lang="EN-GB"><o:p></o:p></span></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><span style="mso-bookmark:T_Default_New"><![if !supportLists]><span lang="EN-GB" style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]><span lang="EN-GB">The log file is created but it is empty from command line.</span></span><span style="mso-bookmark:T_Default_New"><span lang="EN-GB"><o:p></o:p></span></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><span style="mso-bookmark:T_Default_New"><![if !supportLists]><span lang="EN-GB" style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><![endif]><span lang="EN-GB">Is there an option to use an existing table in the database and truncate it instead of dropping and recreate? Thought there would be. This is not connected to command line.
</span></span><span style="mso-bookmark:T_Default_New"><span lang="EN-GB"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:T_Default_New"><span lang="EN-GB"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:T_Default_New"><span lang="EN-GB">Is there someone else that have been testing features like this or are there any good examples to view? Maybe write bug report/feature requests/enhancement proposals to describe
 and discuss if isn’t  just me using it the wrong way. I’m on Windows 10 with QGIS 3.16.3 Standalone installer.<o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:T_Default_New"><span lang="EN-GB"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:T_Default_New"><b><span style="font-size:10.0pt;font-family:"Franklin Gothic Book",sans-serif;color:black;mso-fareast-language:SV">Karl-Magnus Jönsson</span></b></span><span style="mso-bookmark:T_Default_New"><span style="font-size:10.0pt;font-family:"Franklin Gothic Book",sans-serif;color:black;mso-fareast-language:SV">
<o:p></o:p></span></span></p>
<span style="mso-bookmark:T_Default_New"></span>
<p class="MsoNormal"><span style="mso-fareast-language:SV"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>