I'd like to change the name of the output layer of my processing script. The default name appears to be the value of the second arg to  QgsProcessingParameterFeatureSink. I could change this, but that also changes the label on the input field on the processing dialog, and "Output layer" seems pretty self-explanatory, unlike something more descriptive of the algorithm but not clear it's the output.
So I tried just setting the layer name -
       QgsProcessingUtils.mapLayerFromString(dest_id, context).setName('DiffBUffer')
but that had no effect even though I called it as the last line before the return.

Is there a clean way to change the displayed name of the layer in the legend from within the processing script?

Thanks.

_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to