[Qgis-developer] PyQGIS save raster as rendered image, then use GDAL tools on it

Tom Chadwin tom.chadwin at nnpa.org.uk
Mon Jan 11 05:34:11 PST 2016

OK, trying to simplify this, can anyone tell me if file locking is an issue
in this process? I am starting with a raster layer, and then want to run the
following in turn on it:

1. QgsRasterPipe.writeRaster()
2. processing.runalg("gdalogr:warpreproject")
3. processing.runalg("gdalogr:translate")

In each step, I am writing the output to a file, and then running the next
step on that file. In either the QgsRasterPipe step or either of the
processing gdal calls, do I need to do something to free up any locks held
on the intermediate files? Alternatively, can I pipe these processes
together to eliminate this as a consideration?

View this message in context: http://osgeo-org.1560.x6.nabble.com/PyQGIS-save-raster-as-rendered-image-then-use-GDAL-tools-on-it-tp5244204p5244548.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

More information about the Qgis-developer mailing list