[Gdal-dev] Re: Newbie doubt: gdalwarp

WolfgangZ wollez at gmx.net
Fri Oct 19 08:46:15 EDT 2007


om schrieb:
> WolfgangZ wrote:
> 
>> om schrieb:
>>
>>> Hi,
>>>
>>> How can I scale a GeoTIFF image ?
>>> I have tried
>>> gdalwarp -tr 8000 8000 -ts 8000 8000 inputimage.tif out.tif        
>>> (input image resolution is 5213x5613) and got the following error.
>>>
>>> Creating output file that is 0P x 0L.
>>> ERROR 1: Attempt to create 0x0x1 TIFF file, but width, height and bands
>>> must be positive.
>>>
>>> -Is it possible to scale the image using gdalwarp? or is there any 
>>> other way I can accomplish this...
>>> -or is it because I have done something stupid?
>>>
>>> Thanks in advance
>>>
>>> Om
>>
>>
>> perhaps gdal_translate?
>> from http://www.gdal.org/gdal_translate.html
>> -outsize xsize[%] ysize[%]:
>>     Set the size of the output file. Outsize is in pixels and lines 
>> unless '' is attached in which case it is as a fraction of the input 
>> image size.
>>
>> _______________________________________________
>> Gdal-dev mailing list
>> Gdal-dev at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/gdal-dev
>>
>>
> Thanks for your suggestion , but it fails to enlarge if the image 
> resolution is high.
> I tried with 5213x5613 image and its able to to produce only around 4000 
> to 4500 pixels output image.
> I'm able to enlarge smaller images.
> But my requirement is for bigger images :-(
> 
> Thanks
> 
> Om

what is the error with large images? I suppose you might run out of 
memory. Please try the create option -co "TILED=YES"




More information about the Gdal-dev mailing list