On Fri, 19 Jul 2019 at 01:37, Tejas L <[email protected]> wrote:
>
> Hi Devs,
>
> I am writing a processing algorithm which uses multiple 
> QgsProcessingLayerPostProcessorInterface based postprocessors to postprocess 
> and load result layers.
>
> The post processing itself works fine, however I would like to control the 
> execution order of post processors to get a particular final layer order in 
> the QgsLayerTree.
>
> Is there a way to do it?

Not via existing API. But I think you could work around this by making
your post-processor also handle moving the layer's position in the
layer tree as desired? E.g. if each post processor has logic to check
where in the layer tree the layer has been inserted, and move it if
it's not in the desirable location with respect to other possible
layers, then the processors should be robust against execution
order...

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

Reply via email to