<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">hai passato 5 come parametro, ma è un
intero quel metodo non c'è<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">il feedback e il context sono oggetti
qgis,<br>
questo dovrebbe fare al caso tuo<br>
<a
href="https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/tasks.html">https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/tasks.html</a><br>
<br>
<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Il 30/07/2019 22:53, Giacomo Fontanelli
ha scritto:<br>
</div>
<blockquote type="cite"
cite="mid:CAO5DHxHGBaP=39_TdrUw1X4NjgDpy3MPApQP8Tx0HHGh0z14OQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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" moz-do-not-send="true"><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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-it-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-it-user@lists.osgeo.org">QGIS-it-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-it-user">https://lists.osgeo.org/mailman/listinfo/qgis-it-user</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>