Re: [gdal-dev] gdal_translate on single-band TIFF to PNG for web

2016-01-11 Thread Tom Chadwin
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"

[gdal-dev] gdal_translate on single-band TIFF to PNG for web

2016-01-09 Thread Tom Chadwin
I'm trying to convert a single-band TIFF to a PNG for web display using PyQGIS. I've already asked on qgis-dev and GIS.SE. i is a raster layer:  pipelayer = i  pipeextent = pipelayer.extent()  pipewidth, pipeheight = (pipelayer.width(), pipelayer.height())  piperenderer = pipelayer.renderer()  pip