2

I've written a couple of custom scripts for vector shapefiles by following the template provided in QGIS. I am now trying to write a script which will use gdal algorithms to process layers. I have found a great guide here on how to adapt the template for raster layers. My question is if I use a gdal algorithm, how do I pass it to the output to be returned by the script?

For example, if I have rasterized = processing.run("gdal:rasterize", ... in the calculations part, how do I then pass that to the output_path_raster_a = self.parameterAsOutputLayer...

asked Apr 11, 2019 at 7:18
1
  • Could you add a full minimal example? Commented Mar 13, 2023 at 18:19

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.