[gdal-dev] gdalwarp puts negative in front of target height

Matt Wilkie matt.wilkie at gov.yk.ca
Tue Dec 11 12:17:22 EST 2007


dear gdal,

I'm attempting to mosaic a large set of images together using gdalwarp,
but when I use the target resolution (-tr) parameter I get the error
below. However if I drop -tr and use target size (-ts) instead it works.

Works:

  gdalwarp ...snip... -te 88566.821279156 1594588.80496717
533067.710280934 1023087.66196489 -ts 21000 27000 ...snip...

Creating output file that is 21000P x 27000L.
Processing input file N60-W138_ul.tif.


Doesn't:

  gdalwarp ...snip... -te 88566.821279156 1594588.80496717
533067.710280934 1023087.66196489 -tr 21.166883334184629
21.166883334184629 ...snip...

Creating output file that is 21000P x -26999L.
ERROR 1: Attempt to create 21000x-26999x3 TIFF file, but width, height
and bands must be positive.



GDAL 1.5dev, FWTools 1.4.2, released 2007/11/05


Is this a bug or intended behaviour? I didn't specify any negative
numbers but for some reason it's getting them anyway.

thanks,

-- 
matt wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------




More information about the gdal-dev mailing list