[gdal-dev] BuildOverviews (python) going nuts?
Vincent Schut
schut at sarvision.nl
Tue Aug 12 07:21:05 EDT 2008
OK, my bad, forget this issue. Had an older version of gdal python
bindings in /usr/lib/python2.5/site-packages, and the newest version in
/usr/local/lib/... Of course the older one got imported...
VS.
Vincent Schut wrote:
> Hi folks,
>
> is it just me, or is the BuildOverviews function behaving strange on you
> to?
> I regularly call someDs.BuildOverviews("AVERAGE", [plist]) on my output
> datasets (in swig python, that is). Until some time ago (can't tell
> precisely, have been out of business for some time) this worked find.
> However, currently I get the following errors:
>
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "Compression" while writing
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "ImageWidth" while writing
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "PlanarConfiguration" while writing
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "BitsPerSample" while writing
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "SamplesPerPixel" while writing
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "Compression" while writing
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "PhotometricInterpretation" while writing
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "SampleFormat" while writing
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "TileWidth" while writing
> ERROR 1: TIFFSetField:/home/mrp/modis/zandbak/vzaCorrectionTest.tif:
> Cannot modify tag "TileLength" while writing
> ERROR 1: GTIFFWriteDirectory:Can not write tiles to a stripped image
>
> Which is quite strange, because I am definitely sure that my image is a
> tiled image. I have double-checked this with gdalinfo.
>
> Calling gdaladdo afterward on the file works OK, though, so I suppose
> something has changed in the swig/python wrappers...
>
> Btw this is on linux, pretty recent gdal from svn (rev. 15069), bigtiff
> enabled.
>
> Cheers,
> Vincent.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list