<div dir="ltr"><div>On Tue, 03 Jul 2018 at 12:03, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>> wrote:<br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Handling these three situations would improve the situation, but it's<br>
> still a bit clunky (and complicated for users to understand). Another<br>
> option would be to forego the source() names altogether, and use an a,<br>
> b, c notation like many of the other raster calculators do.<br>
<br>
I personally think this may be the best available approach, which<br>
doesn't require complex changes to the raster expression engine.</blockquote><div dir="auto"><br></div><div>Is there a way to access the list of selected reference layers from within the `ExpressionWidgetWrapper`? I haven't found any way to do this yet, and if the list of layers in the widget is different from the layers that gets passed to `QgsRasterCalculator` (like if new parameters or algorithms get added to the model) it could lead to strange errors and user confusion. It might then be best to return `QLineEdit` for the modeler view, like it already is for `DIALOG_BATCH`?</div><div><br></div><div>Rudi</div><div><br></div></div></div>
</div>