Frank,<br><br>If I can't use the <b>-tr</b> <em>xres yres then how do I set the resolution to be 250 meters?</em><br>Below is the results from gdalinfo:<br>Driver: GTiff/GeoTIFF<br>Size is 18308, 16757<br>Coordinate System is:
<br>GEOGCS["WGS 84",<br> DATUM["WGS_1984",<br> SPHEROID["WGS 84",6378137,298.2572235630016,<br> AUTHORITY["EPSG","7030"]],<br> AUTHORITY["EPSG","6326"]],
<br> PRIMEM["Greenwich",0],<br> UNIT["degree",0.0174532925199433],<br> AUTHORITY["EPSG","4326"]]<br>Origin = (-90.086129408167338,29.957590557694168)<br>Pixel Size = (0.000001458940448
,-0.000001458940448)<br>Metadata:<br> AREA_OR_POINT=Area<br>Corner Coordinates:<br>Upper Left ( -90.0861294, 29.9575906) ( 90d 5'10.07"W, 29d57'27.33"N)<br>Lower Left ( -90.0861294, 29.9331431) ( 90d 5'
10.07"W, 29d55'59.32"N)<br>Upper Right ( -90.0594191, 29.9575906) ( 90d 3'33.91"W, 29d57'27.33"N)<br>Lower Right ( -90.0594191, 29.9331431) ( 90d 3'33.91"W, 29d55'59.32"N)
<br>Center ( -90.0727743, 29.9453668) ( 90d 4'21.99"W, 29d56'43.32"N)<br>Band 1 Block=256x256 Type=Byte, ColorInterp=Red<br> Overviews: 9154x8379, 4577x4190, 2289x2095, 1145x1048, 573x524, 287x262, 144x131
<br>Band 2 Block=256x256 Type=Byte, ColorInterp=Green<br> Overviews: 9154x8379, 4577x4190, 2289x2095, 1145x1048, 573x524, 287x262, 144x131<br>Band 3 Block=256x256 Type=Byte, ColorInterp=Blue<br> Overviews: 9154x8379, 4577x4190, 2289x2095, 1145x1048, 573x524, 287x262, 144x131
<br><br><div><span class="gmail_quote">On 1/4/07, <b class="gmail_sendername">Frank Warmerdam</b> <<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
John Mitchell wrote:<br>> Hi,<br>><br>> I run the following command:<br>><br>> gdalwarp -rc -tr 250 250 ortho.tif overview.tif<br>><br>> and I get the following error:<br>><br>> Error 1:Attempt to create 0X0X3 TIFF, but width, height and bands must be positive.
<br>><br>><br>> What do I need to add to my gdalwarp command?<br><br>John,<br><br>It would be helpful to give a gdalinfo report on the input file. You<br>also might want to try it without the -tr switch. I suspect the
<br>input file is in geographic coordinates and so you are requesting<br>an output with 250 degree x 250 degree pixels which results in a 0x0<br>file producing the error message.<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------
<br>I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam
</a><br>and watch the world go round - Rush | President OSGeo, <a href="http://osgeo.org">http://osgeo.org</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>John J. Mitchell