>
> It depends if you can get away with a layer subset string for the
> filter. (I.e. provider side filter). Because if so, you can embed
> these filters in layer sources, e.g.
>
> processing.run("native:centroids",
> {'INPUT':'/home/me/layer.shp|layerid=0|subset=\"something\" =
> \'value\'','ALL_PARTS':False,'OUTPUT':'TEMPORARY_OUTPUT'})
>
Unfortunately no, since my filter is a spatial filter (a rectangle in this
case, but it's not relevant).
I fear I will have to create my own voronoi algorithm.
> Would be nice to extend QgsProcessingFeatureSourceDefinition to
> support an expression based filter, that sounds like a good
> addition...
>
Definitely :)
Giovanni
>
> Nyall
>
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer