<div dir="ltr"><div>salve <br></div><div><br></div><div>sto scrivendo un codice che mi dovrebbe permettere di creare uno raster multibanda (stack raster) con python qgis.</div><div><br></div><div>La linea che mi causa l'errore è <br></div><div><br></div><div>processing.run ('gdal:merge', '/home/giacomo/file1.tif;/home/giacomo/file2.tif;/home/giacomo/file3.tif;/home/giacomo/file4.tif', False, False, 5, '/home/giacomo/stack.tif')</div><div><br></div><div>l'errore in questione è questo <br></div><div><br></div><div>Traceback (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 74, 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><br></div><div>Il mio QGIS ha le seguenti caratteristiche<br></div><div>
<table style="margin:0px" width="100%" cellspacing="2" cellpadding="0" border="0" align="center">
<tbody><tr>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">QGIS version</p></td>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">3.8.0-Zanzibar</p></td>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">QGIS code revision</p></td>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><a href="https://github.com/qgis/QGIS/commit/11aff65"><span style="text-decoration:underline;color:rgb(0,0,255)">11aff65</span></a></p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Compiled against Qt</p></td>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">5.12.2</p></td>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Running against Qt</p></td>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">5.12.2</p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Compiled against GDAL/OGR</p></td>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">2.4.0</p></td>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Running against GDAL/OGR</p></td>
<td>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">2.4.0</p></td></tr></tbody></table></div><div><br></div><div><br></div><div>Sapete dirmi in cosa sbaglio?</div><div><br></div><div>Una sintassi simile funzionava perfettamente in QGIS 2.18</div><div><br></div><div>Grazie<br></div></div>