I am reprojecting a list of files using a for loop
Piece of code:
projection = processing.run('native:reprojectlayer',
{'INPUT' : inputfile,
'OUTPUT' : 'memory:',
'TARGET_CRS' : QgsCoordinateReferenceSystem('EPSG:4326')
})
Here, 'OUTPUT':'memory:' names all reprojected layers as 'output' which creates confusion. I need each temporary output to be named unique(example: inputfile_name_reprojected).
How can I do that?
Being a beginner, I tried all possible scenarios but nothing worked for me.
result.setName()method. As far as I understood from one PyQGIS guru in his answer here: it is not straightforward. @KadirŞahbaz, please correct me if I am wrong. – Taras Feb 20 '22 at 19:00