<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It depends if you can get away with a layer subset string for the<br>
filter. (I.e. provider side filter). Because if so, you can embed<br>
these filters in layer sources, e.g.<br>
<br>
   processing.run("native:centroids",<br>
{'INPUT':'/home/me/layer.shp|layerid=0|subset=\"something\" =<br>
\'value\'','ALL_PARTS':False,'OUTPUT':'TEMPORARY_OUTPUT'})<br></blockquote><div><br></div><div>Unfortunately no, since my filter is a spatial filter (a rectangle in this case, but it's not relevant).</div><div>I fear I will have to create my own voronoi algorithm.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Would be nice to extend QgsProcessingFeatureSourceDefinition to<br>
support an expression based filter, that sounds like a good<br>
addition...<br></blockquote><div><br></div><div>Definitely :)</div><div><br></div><div>Giovanni</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Nyall<br>
</blockquote></div></div>