<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> </div>

<div class="signature">Hello everyone</div>

<div class="signature"> </div>

<div class="signature">I work mostly with QGIS 3.18 (SAGA 2.3.2), but the problem also exists in QGIS 3.22 (SAGA 7.8.2) and QGIS 3.28 (SAGA 7.8.2). </div>

<div class="signature"> </div>

<div class="signature">If I run the SAGA module 'Point statistics for polygon' via the QGIS Processing Toolbox and check the calculation of Sum, Mean (= AVG), Variance (= VAR), Deviation (= DEV), Minimum, Maximum and Count (= NUM), these values are displayed in the output shp file.</div>

<div class="signature"> </div>

<div class="signature"><strong>If I do the same with the Python Console (same settings, same layer, same output layer) the inputs (True/False) for Sum, Mean, Variance, Deviation, Minimum, Maximum and Count are ignored and just the SAGA default setting (AVG = True, everything else = False) is executed for this module. Furthermore, the command is executed without error. </strong></div>

<div class="signature"> </div>

<div class="signature">My Python code:</div>

<div class="signature">Note: For clarity, I shortened below the file paths with [...].</div>

<div class="signature"> </div>

<div class="signature">>>>from qgis import processing</div>

<div class="signature">>>>processing.run('saga:pointstatisticsforpolygons', {'AVG ' : True, 'DEV ' : True, 'FIELDS' : 'VALUE', 'FIELD_NAME' : 3, 'MAX ' : True, 'MIN ' : True, 'NUM ' : True, 'POINTS' : 'C:/[...]Test_points.shp', 'POLYGONS' : 'C:/[...]/Test_Polygons.shp', 'STATISTICS' : 'C:/[...]/Test_Output.shp', 'SUM ' : True, 'VAR ' : True}) </div>

<div class="signature"> </div>

<div class="signature"><strong>Does anyone have an idea what the reason for this behavior could be? And how can I solve this problem?</strong> (Other modules (non-SAGA) are executed correctly via the Python Console).</div>

<div class="signature">If not, is there a way to change the default setting in SAGA?</div>

<div class="signature"> </div>

<div class="signature">Thanks for your help.</div>

<div class="signature">Anna</div>

<div class="signature"> </div></div></body></html>