<div dir="auto"><p style="margin:0px 0px 10px;font-family:helvetica;font-size:medium">how to change pixel size from raster by value using pyqgis or python gdal ?</p><p style="margin:0px 0px 10px;font-family:helvetica;font-size:medium">i try to using SAGA GIS tool resampling :</p><div style="font-family:helvetica;font-size:medium" dir="auto"><pre style="padding:4px;border:1px solid rgb(221,221,221);background-color:rgb(238,238,238);border-radius:3px"><code>ext2 = rasterLyr2.extent()
xmin = ext2.xMinimum()
xmax = ext2.xMaximum()
ymin = ext2.yMinimum()
ymax = ext2.yMaximum()
extends= <span style="color:rgb(96,32,32)">"%f,%f,%f,%f"</span> % (xmin, xmax, ymin, ymax)
processing.runalg(<span style="color:rgb(96,32,32)">'saga:resampling'</span>, rasterLyr2, <span style="color:rgb(35,37,105)">True</span>, <span style="color:rgb(96,32,32)">0</span>, <span style="color:rgb(96,32,32)">0</span>, extends, <span style="color:rgb(96,32,32)">10.0</span>,<span style="color:rgb(35,37,105)">None</span>)</code></pre></div><p style="margin:0px 0px 10px;font-family:helvetica;font-size:medium">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 ?</p></div>