RE: [gdal-dev] RE: Compression using the create method in python and aggregation methods

2010-09-22 Thread Hartley, Andrew
: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] RE: Compression using the create method in python and aggregation methods Andy, Try this instead. out = outDrv.Create("outfile.tif", gscl.RasterXSize, gscl.RasterYSize, 1, gdalconst.GDT_UInt16, options = [ 'COMPRESS=LZW' ] )

Re: [gdal-dev] RE: Compression using the create method in python and aggregation methods

2010-09-22 Thread Chaitanya kumar CH
Andy, Try this instead. out = outDrv.Create("outfile.tif", gscl.RasterXSize, gscl.RasterYSize, 1, gdalconst.GDT_UInt16, *options = *[ 'COMPRESS=LZW' ] ) However, I am not sure this makes any difference because gdalinfo did tell that there is LZW compression. On Wed, Sep 22, 2010 at 4:41 PM, Har

[gdal-dev] RE: Compression using the create method in python and aggregation methods

2010-09-22 Thread Hartley, Andrew
> Hi all, > > I'm trying to create a Gtiff with LZW compression using python, with > the code below, which I wrote with help from the tutorial at > http://www.gdal.org/gdal_tutorial.html. Gdalinfo tells me that the > resulting tif ("outfile.tif") has compression (Image Structure > Metadata: COMPRE