My first processing runalg creates a memory layer as output. I need to use this layer as the input for the second runalg.
#first
processing.run("qgis:fieldcalculator", {
'INPUT': 'test_1_f08f5cd1_13ea_445b_9778_6ee0ab919030',
'FIELD_NAME': '1.3-field',
'FIELD_TYPE': 0,
'FIELD_LENGTH': 10,
'FIELD_PRECISION': 3,
'NEW_FIELD': True,
'FORMULA': '((length(shortest_line(centroid($geometry),boundary($geometry)))))*1.3',
'OUTPUT': 'memory:'
})
#second
processing.run("qgis:fieldcalculator", {
'INPUT':?????,
'FIELD_NAME': '1.3-field',
'FIELD_TYPE': 0,
'FIELD_LENGTH': 10,
'FIELD_PRECISION': 3,
'NEW_FIELD': True,
'FORMULA': '((length(shortest_line(centroid($geometry),boundary($geometry)))))*1.3',
'OUTPUT': 'memory:'
})
I have found this links but none could help me.