Hi,

Is there a flag or something to instruct gdal_translate to stop or abort when 
it encounters an error?


gdal_translate   -co compress=zstd   -co predictor=yes   -co level=17   -co 
bigtiff=yes   -of cog   -a_nodata 0 
Finlayson9488_SP6_24Aug2016_150cm.rgb-nir.vrt 
out\Finlayson9488_SP6_24Aug2016_150cm.rgb-nir.tif

Input file size is 43101, 54192
0...10..ERROR 1: LZWDecode:Corrupted LZW table at scanline 0
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0: TIFFReadEncodedTile() 
failed.
ERROR 1: LZWDecode:Corrupted LZW table at scanline 0
ERROR 1: TIFFReadEncodedTile() failed.
...many repeats.

The next day, no changes made to files or environment:

gdal_translate   -co compress=zstd   -co predictor=yes   -co level=17   -co 
bigtiff=yes   -of cog   -a_nodata 0 
Finlayson9488_SP6_24Aug2016_150cm.rgb-nir.vrt 
out\Finlayson9488_SP6_24Aug2016_150cm.rgb-nir.tif

Input file size is 43101, 54192
0...10...20...30...40...50... (still going)


The vrt being translated points to 4 other vrt which in turn are reading from a 
network share holding zip archives of the source imagery. (I'm taking 3 bands 
from an RGB-inzip and 1 band from a 3 band Infrared-RG-inzip and creating a 
single 4 band  RGB-I cloud geotiff.)

I suspect the problem has to do with a network timeout or something but really 
the cause doesn't matter for me here. I just want gdal_translate to stop or 
abort when something like this goes wrong. Is that possible?


Matt Wilkie
Geomatics Developer & Administrator
Environment | Technology, Innovation and Mapping
T 867-667-8133 | Yukon.ca<http://yukon.ca/>
Hours: 08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away.

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to