[gdal-dev] ERROR 6: SetNoDataValue() not supported for this dataset.

2009-09-21 Thread Joaquim Luis
Hi, In this example I get the (apparently innocuous) error message below. The file is correctly converted, but why is it complaining? gdal_translate w020n40.Bathymetry.srtm lixo.tiff ERROR 6: SetNoDataValue() not supported for this dataset. Input file size is 4800, 6000

Re: [gdal-dev] ERROR 6: SetNoDataValue() not supported for this dataset.

2009-09-21 Thread Even Rouault
Selon Joaquim Luis jl...@ualg.pt: I can't reproduce your issue with trunk, nor can I understand how it can happen. This error message is thrown when a driver doesn't implement the SetNoDataValue() method. But the GTiff driver has supported it for ages. Hi, In this example I get the

Re: [gdal-dev] ERROR 6: SetNoDataValue() not supported for this dataset.

2009-09-21 Thread Joaquim Luis
Yes, strange it is. I'm using trunk as well (from yesterday) but I don't get it when I use FWTools. Even weirder, I used GTiff just as an easy example but the original place where I saw it is with my gdalread MEX, which only reads a dataset and does not attempt to write it anywhere. Even

Re: [gdal-dev] ERROR 6: SetNoDataValue() not supported for this dataset.

2009-09-21 Thread Even Rouault
Selon Joaquim Luis jl...@ualg.pt: Very weird. In such cases, I'd recommand a 'make clean; make', especially if you've hacked your tree. If it still continues afterwards, you'll have to set a breakpoint in GDALRasterBand::SetNoDataValue() and see what calls it. Yes, strange it is. I'm using