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

##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?

1 Answer 1


Processing offers two approaches:

  • using the file name or
  • using the output name specified in the scripts.

You can change the behavior in the Processing options:

enter image description here

  • I was hoping to be able to set the name myself so if I give this script to someone it would work for them without any setup, but taking the name from the filename will work. Thanks. Mar 24, 2015 at 18:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.