<div dir="ltr">Hi Sophie,<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 12, 2018 at 4:26 PM, Sophie Crommelinck <span dir="ltr"><<a href="mailto:sophie.crommelinck@gmail.com" target="_blank">sophie.crommelinck@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"><div dir="ltr"><div>Hello,</div><div><br></div><div>I am unable to figure out why a certain processing algorithm (v.net.steiner) works fine in QGIS2, but not in QGIS3. I am using the same line and point layer with the same cost column. The input data as well as the cost column are the only parameters that I define, the others remain the default ones.</div><div><br></div><div>In QGIS2 the processing history looks like this:</div><div>


<p style="margin:0px 0px 0px 40px;white-space:pre-wrap"><i>processing.runalg("grass7:v.<wbr>net.steiner","C:/xxx/<wbr>linesLayer.shp","C:/xxx/<wbr>nodeLayer.shp",50,2,"1-100000"<wbr>,"boundary",-1,False,"794057.<wbr>939937,794307.889937,9833916.<wbr>58837,9834082.13837",-1,0.<wbr>0001,0,None)</i></p></div></div></blockquote><div><br></div><div>... note that there are no parameter names coded.<br></div><div><br></div><div>But here:<br></div><div><br></div><div> [...]</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>
In QGIS3 the processing history looks like this:

<br></div><div>

<p style="margin:0px 0px 0px 40px;white-space:pre-wrap"><i>processing.run("grass7:<a href="http://v.net">v.net</a>.<wbr>steiner", {'input':'C:/xxx/linesLayer.<wbr>shp','points':'C:/xxx/<wbr>nodeLayer.shp','threshold':50,<wbr>'arc_type':[0,1],'terminal_<wbr>cats':'1-100000','acolumn':'<wbr>boundary','npoints':-1,'-g':<wbr>False,'output':'G:/1_QGIS_<wbr>Temp_files/processing_<wbr>f8ef30794232406cb21d5d7cc1d068<wbr>09/<wbr>4774808dfe284dafafd9a15a9879a5<wbr>c1/output.shp','GRASS_REGION_<wbr>PARAMETER':None,'GRASS_SNAP_<wbr>TOLERANCE_PARAMETER':-1,'<wbr>GRASS_MIN_AREA_PARAMETER':0.<wbr>0001,'GRASS_OUTPUT_TYPE_<wbr>PARAMETER':0})</i></p></div></div></div></div></blockquote><div><br></div><div>... here yes. And v.net.steiner does not have a "points" parameter, see<p style="margin:0px;white-space:pre-wrap"><a href="https://grass.osgeo.org/grass74/manuals/v.net.steiner.html">https://grass.osgeo.org/grass74/manuals/v.net.steiner.html</a></p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap"></p><div><div><div id="gmail-synopsis"><b>v.net.steiner</b> [-<b>g</b>] <b>input</b>=<em>name</em> <b>output</b>=<em>name</em>  [<b>arc_type</b>=<em>string</em>[,<i>string</i>,...]]   [<b>arc_layer</b>=<em>string</em>]   [<b>node_layer</b>=<em>string</em>]   [<b>acolumn</b>=<em>string</em>]  <b>terminal_cats</b>=<em>range</em>  [<b>npoints</b>=<em>integer</em>]   [--<b>overwrite</b>]  [--<b>help</b>]  [--<b>verbose</b>]  [--<b>quiet</b>]  [--<b>ui</b>] 
</div><br></div><div><br></div></div></div><div>Hence this error:<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"><div dir="ltr"><div><div><div><p style="margin:0px;white-space:pre-wrap">No result is created. The error messages indicate that the point layer cannot be used:</p><p style="margin:0px 0px 0px 40px;white-space:pre-wrap"><i><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif">FEHLER: v.net.steiner: Sorry, <points> is not a valid parameter</span></span></i></p></div></div></div></div></blockquote><div><br></div><div> The bug seems to be in this file</div><div><a href="https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/description/v.net.steiner.txt">https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/grass7/description/v.net.steiner.txt</a></div><div><br></div><div>I'd suggest you open a bug report with QGIS on this.</div><div><br></div><div>best,<br></div><div>Markus<br></div></div><br clear="all"><br>-- <br><div class="gmail_signature">Markus Neteler, PhD<br><a href="http://www.mundialis.de" target="_blank">http://www.mundialis.de</a> - free data with free software<br><a href="http://grass.osgeo.org" target="_blank">http://grass.osgeo.org</a><br><a href="http://courses.neteler.org/blog" target="_blank">http://courses.neteler.org/blog</a></div>
</div></div>