Мне нужно разделить файл с большими геотифами (~ 1.6Gb), используя gdal_retile.py
К сожалению, команда
gdal_retile.py -ps 512 512 -targetDir tiles image.tif
Выдает следующую ошибку:
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: image.tif, band 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
GetBlockRef failed at X block offset 0, Y block offset 0
Traceback (most recent call last):
File "/usr/bin/gdal_retile.py", line 1034, in <module>
sys.exit(main(sys.argv))
File "/usr/bin/gdal_retile.py", line 940, in main
dsCreatedTileIndex = tileImage(minfo,ti)
File "/usr/bin/gdal_retile.py", line 362, in tileImage
createTile(minfo, offsetX, offsetY, width, height,tilename,OGRDS)
File "/usr/bin/gdal_retile.py", line 511, in createTile
dec.uly+offsetY*dec.scaleY)
File "/usr/bin/gdal_retile.py", line 266, in getDataSet
t_band.WriteRaster(tw_xoff, tw_yoff, tw_xsize, tw_ysize, data )
File "/usr/lib/python2.7/dist-packages/osgeo/gdal.py", line 2373, in WriteRaster
return _gdal.Band_WriteRaster(self, *args, **kwargs)
TypeError: not a string