How to change pixel size from raster by value using PyQGIS or Python GDAL?
I tried to using SAGA GIS Tool Resampling:
ext2 = rasterLyr2.extent()
xmin = ext2.xMinimum()
xmax = ext2.xMaximum()
ymin = ext2.yMinimum()
ymax = ext2.yMaximum()
extends= "%f,%f,%f,%f" % (xmin, xmax, ymin, ymax)
processing.runalg('saga:resampling', rasterLyr2, True, 0, 0, extends, 10.0,None)
But that way not work for me because in the some CRS have different extends order any idea how to change pixel size from raster using PyQGIS?