Skip to main content
edited title
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Can you change the Changing layer name of an output vector from a processing script in QGIS?

Source Link

Can you change the layer name of an output vector from a processing script in QGIS?

I define an input csv file and an output like so in my processing script:

##Input_CSV_File=file
##Output_Shapefile=output vector

The output shapefile is added to the map automatically when the script is done, but the name of the layer in QGIS is always "Output Shapefile". I want to name the layer based on something in the file. Is there a way to change the name the layer is added with after the script is done?