[gdal-dev] TILED=NO creates a tiled TIFF?
Frank Warmerdam
warmerdam at pobox.com
Mon Jun 23 13:03:08 EDT 2008
Maciej Sieczka wrote:
> Frank Warmerdam pisze:
>> Maciej Sieczka wrote:
>
>>> Thanks for the hint. Unfortunatelly gdal_translate segfaults then:
>>>
>>> Starting program: /usr/local/bin/gdal_translate -co "TILED=YES" -co
>>> "BLOCKYSIZE=1" check.tif check3.tif
>
>> It appears you switched back to TILED=YES from TILED=NO.
>
> Sorry! It was late.
>
>> A blockysize of
>> 1 is not legal for tiled files. I'm not sure why things crashed though.
>> You might want to file a ticket on that aspect.
>
> Will do.
>
>> But try:
>>
>> gdal_translate -co TILED=NO -co BLOCKYSIZE=1 check.tif check3.tif
>
> Seems to work, but throws out an error:
>
> $ gdal_translate -co "TILED=NO" -co "BLOCKYSIZE=1" check.tif check3.tif
> Input file size is 4090, 2216
> ERROR 1: TIFFReadDirectory:Cannot handle zero number of tiles
> 0...10...20...30...40...50...60...70...80...90...100 - done.
>
> Is everything OK?
Maciek,
Strange, I do not see the same behavior:
warmerda at gdal64[13]% gdal_translate -co TILED=NO -co BLOCKYSIZE=1 utm.tif
out.tif --debug off
Input file size is 512, 512
0...10...20...30...40...50...60...70...80...90...100 - done.
The error message is concerning to me, but it is hard to know if things
worked or not. Viewing the resulting file, and inspecting a tiffinfo
report on it would be helpful.
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