[ gpsdrive ] Errors with gdal_warp

Hamish hamish_b at yahoo.com
Wed Nov 19 16:43:34 AKST 2008


Geoff wrote:
> I'm trying to transform NOAA RNC charts to tif's
> (and then use Hamish' gdalslice to make tiles). BUT, I
> get errors with gdalwarp:
> 
> [root at tor4 11466]# gdalwarp -t_srs "EPSG:4326" -order 2 -rn \
>   -co 'COMPRESS=DEFLATE' 11466_1.KAP 11466_1.tif
> Copying color table from 11466_1.KAP to new file.
> Creating output file that is 9318P x 11913L.
> Processing input file 11466_1.KAP.
> :0...10...20...30...40...ERROR 1: ZIPDecode:11466_1.       
>      tif: Decoding error at scanline 0, incorrect header    
>          check
> ERROR 1: TIFFReadEncodedStrip() failed.
> 
> ERROR 1: IReadBlock failed at X offset 0, Y offset 0
> ERROR 1: GetBlockRef failed at X block offset 0, Y b       
>      lock offset 0
> 
> Can anyone suggest a fix? This appears to be an original
> problem with the KAP file, as re-downloading results in the
> same error.


gdalwarp should not use any COMPRESSion, apply that later with
gdal_translate if needed.


.... try again without  -co 'COMPRESS=DEFLATE' 


did you get that command from an old post or a script or wiki page?
If either of the latter we should update it.



Hamish



      



More information about the GPSdrive mailing list