[Gdal-dev] Re: Newbie doubt: gdalwarp

om omkaranathan at darshan3d.com
Fri Oct 19 08:38:31 EDT 2007


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



More information about the Gdal-dev mailing list