[Qgis-user] pyqis change pixel size from raster

Xristos Xristoou saxri89 at gmail.com
Sat Oct 20 04:27:46 PDT 2018


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 ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20181020/3b8db396/attachment.html>


More information about the Qgis-user mailing list