On 12-03-17 01:15 PM, Andrea Peri wrote:
Hi,
I'm try-ing to create a set of tiff tiled with internal overviews from some
geotiffs, using this call:

gdal_translate -ot Byte -of GTiff -co TILED=YES -co TFW=YES -co
COPY_SRC_OVERVIEWS=YES -co TIFF_USE_OVR=TRUE -co PROFILE=BASELINE -co TFW=YES
input.tif output.tif

meanwhile it run , it report many errors like these:

ERROR 1: 248040_2010.tif:0: Invalid tile byte count, tile 2323
ERROR 1: 248040_2010.tif:0: Invalid tile byte count, tile 2324
ERROR 1: 248040_2010.tif:0: Invalid tile byte count, tile 2325
ERROR 1: 248040_2010.tif:0: Invalid tile byte count, tile 2326
ERROR 1: 248040_2010.tif:0: Invalid tile byte count, tile 2327
...

I don't know what this mean and what can I do to avoid this error.

Is gdal_translate the right tool to create a tiff-tile ?

Andrea,

Sometimes the libtiff, the TIFF library used by GDAL does not work properly
when creating files with compressed overview tiles if you are not using a
very recent version of libtiff.  Is it possible you are using a GDAL built
with libtiff 3.9.x instead of the internal libtiff or libtiff 4.0.x?

Would it meet your needs to copy the base image (without the -co
COPY_SRC_OVERVIEWS flag) and then regenerate the overviews with gdaladdo?

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush    | Geospatial Software Developer

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to