[gdal-dev] TILED=NO creates a tiled TIFF?

Frank Warmerdam warmerdam at pobox.com
Sun Jun 22 17:47:41 EDT 2008


Maciej Sieczka wrote:
> Hi!
> 
> I have a tiled GeoTIFF at input:
> 
> $ gdalinfo ~/check.tif | grep Block
> Band 1 Block=256x256 Type=Byte, ColorInterp=Palette
> 
> I want to make it stripped, yet the output of:
> 
> $ gdal_translate -co "TILED=NO" check.tif check2.tif
> 
> seems still tiled:
> 
> $ gdalinfo ~/check2.tif | grep Block
> Band 1 Block=4090x2 Type=Byte, ColorInterp=Palette
> 
> I expected "Block=WIDTHx1". Is there something wrong or my bad?

Maciej,

The traditional TIFF logic is to create strips which are 8K or so.  If
you want each strip to be a single scanline, try also specifying
-co BLOCKYSIZE=1.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list