<div dir="ltr"><div>Grazie</div><div><br></div><div>processing.algorithmHelp('gdal:merge') l'ho sempre cercato, perchè mi permette di conoscere i parametri in ingresso al processing.</div><div><br></div><div>Ho provato a mettere tutto in un dizionario ma si ripresenta lo stesso errore:</div><div><br></div><div>parameters = {'INPUT': '/home/file1.tif;/home/file2.tif;/home/file3.tif;/home/file4.tif', \<br> 'PCT': False, \<br> 'SEPARATE': False, \<br> 'NODATA_INPUT': 0, \<br> 'NODATA_INPUT': 0, \<br> 'OPTIONS': "", \<br> 'DATA_TYPE': 5, \<br> 'OUTPUT': pathOutStack}<br><br>processing.run ('gdal:merge', parameters)</div><div><br></div><div>questo è l'errore</div><div><br></div><div>raceback (most recent call last):<br> File "/usr/lib/python3.7/code.py", line 90, in runcode<br> exec(code, self.locals)<br> File "<input>", line 1, in <module><br> File "<string>", line 76, in <module><br> File "/usr/share/qgis/python/plugins/processing/tools/general.py", line 114, in run<br> return Processing.runAlgorithm(algOrName, parameters, onFinish=post_process, feedback=feedback, context=context)<br> File "/usr/share/qgis/python/plugins/processing/core/Processing.py", line 130, in runAlgorithm<br> if context.feedback() is None:<br>AttributeError: 'int' object has no attribute 'feedback'</div><div><br></div><div>Giacomo<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 31 lug 2019 alle ore 07:10 matteo <<a href="mailto:matteo.ghetta@gmail.com">matteo.ghetta@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ciao Giacomo,<br>
<br>
devi passare i parametri in un dizionario:<br>
<br>
processing.run('gdal:merge, parameters = {'INPUT': .....,<br>
'SECONDO_PARAMETRO'.....})<br>
<br>
per vedere i parametri da usare<br>
<br>
processing.algorithmHelp('gdal:merge')<br>
<br>
Matteo<br>
_______________________________________________<br>
QGIS-it-user mailing list<br>
<a href="mailto:QGIS-it-user@lists.osgeo.org" target="_blank">QGIS-it-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/qgis-it-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-it-user</a><br>
</blockquote></div>