[gdal-dev] help with resampling via python
Chris Somerlot
csomerlot at gmail.com
Tue Mar 31 19:47:50 EDT 2009
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090331/9e19d837/attachment.html
More information about the gdal-dev
mailing list