<div dir="ltr"><div>Salve, sono oramai alla fine del mio script di processing</div><div><br></div><div>vi allego la parte finale sperando che riusciate a desumere la causa dell'errore che recita così</div><div><br></div><div>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="font-family:"DejaVu Sans"">{ 'POLYGONS' : '/home/giacomo/Dropbox/Script/Python/PyGIS/zonalstats/prova/vec.shp', 'PREFIX' : 'b_', 'STACK' : '/home/giacomo/Dropbox/Script/Python/PyGIS/zonalstats/prova/stack.tif', 'STAT' : [2] }</span></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">TypeError: invalid result from ZonalStatisticsStack.prepareAlgorithm(), a 'bool' is expected not 'NoneType'<br></span></p></div><div><br></div><div>la parte finale dello script è <br></div><div><br></div><div>for iBand in listBands:<br> processPar = {<br> "INPUT_RASTER": parameters[self.STACK],<br> "RASTER_BAND": iBand, <br> "INPUT_VECTOR": parameters[self.POLYGONS],<br> "COLUMN_PREFIX": 'b_', <br> "STATISTICS": parameters[self.STAT]}<br> <br> processOut = processing.run(<br> 'qgis:zonalstatistics', <br> processPar,<br> is_child_algorithm = False,<br> context = context,<br> feedback = feedback)<br> <br> return {self.INPUT: processOut["INPUT"]}</div><div><br></div><div><br></div><div>GRAZIE<br></div></div>