how to change pixel size from raster by value using pyqgis or python gdal ?

i try 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 ?
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to