At the end of my processing model, it runs an "Add geometry attributes" operation. I want the resulting layer to be named "Overlap" instead of the default "Added geom info." How should I insert the renaming process in the same script?
This is the start of the model
def processAlgorithm(self, parameters, context, feedback):
feedback = QgsProcessingMultiStepFeedback(4, feedback)
results = {}
outputs = {}
This is the end of the model
alg_params = {
'CALC_METHOD': 0,
'INPUT': outputs['DissolveOverlap']['OUTPUT'],
'OUTPUT': parameters['MeasuredOverlap']
}
results['MeasuredOverlap'] = processing.run('qgis:exportaddgeometrycolumns', alg_params, context=context, feedback=feedback, is_child_algorithm=True)
return results