<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.14">
<TITLE>Gdalwarp resolution</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hey folks,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I am trying to move a 800 dpi to a 300 dpi image. The src image was created using gdal_translate to assign SRS, 4 GCP's and change from 16bit to 8bit image. Src image has the following meta_tags</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Metadata:</FONT>
<BR><FONT SIZE=2 FACE="Arial"> AREA_OR_POINT=Area</FONT>
<BR><FONT SIZE=2 FACE="Arial"> TIFFTAG_XRESOLUTION=800</FONT>
<BR><FONT SIZE=2 FACE="Arial"> TIFFTAG_YRESOLUTION=800</FONT>
<BR><FONT SIZE=2 FACE="Arial"> TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Area_or_Point =Area </FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">The command line I am using is:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">gdalwarp -tr 300 300 oA38_001.tif S_A38_001.tif</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">But I get this error</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Creating output file that is 0P x 0L.</FONT>
<BR><FONT SIZE=2 FACE="Arial">ERROR 1: Attempt to create 0x0x1 TIFF file, but width, height and bands must be positive.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Any ideas?</FONT>
</P>
</BODY>
</HTML>