On 01/13/11 22:13, Even Rouault wrote:
Le jeudi 13 janvier 2011 22:03:57, Jean-Claude REPETTO a écrit :
Hello,
I would like to translate an OZI file to TIFF. The input file contains
several overviews. But the output file doesn't contain any overview.
Is there a solution to keep the overviews ?
Yes, you can use the COPY_SRC_OVERVIEWS creation option of the GTiff driver :
http://gdal.org/frmt_gtiff.html. However, be aware that if you use any option
of gdal_translate that needs an intermediate VRT (basically almost any option
except the driver creation options), the source overviews will not be seen by
the GTiff driver.
Thanks for your answer. Unfortunately, I get an error message :
$ gdal_translate -co COPY_SRC_OVERVIEWS=YES 314-Calvi_ozf.map 314-Calvi.tif
Input file size is 3303, 3080
0ERROR 1: Input and output dataset sizes or band counts do not
match in GDALDatasetCopyWholeRaster()
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev