Having trouble figuring out how to resample an image to a different cell size from python. I looked over the VRT driver page and have been trying to get this to work:
from osgeo import gdal gdal.AllRegister() src = gdal.Open('DOQ_test.TIF') drv = gdal.GetDriverByName('VRT') dst = drv.CreateCopy("", src, 0) dst.RasterXSize = '125' But it seems the cell size in the datasets and the bands are read only? Is there any programmatic way to do this?
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev