<!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>Gdal_translate BUG?</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 have been having trouble using the -outsize option in gdal translate.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have been told this is my solution for downsizing. The following is what I had to do in order for it to work.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">First: Translate using GCP's</FONT>
<BR><FONT SIZE=2 FACE="Arial">=====================</FONT>
<BR><FONT SIZE=2 FACE="Arial">gdal_translate -gcp 378.19 196.43 -76.777261 45.67899 -gcp 6013.13 282.36 -76.744739 45.678655 -gcp 5890.36 7565.55 -76.745361 45.649344 -gcp 290.14 7492.18 -76.777866 45.649679 A38_001.tif tiA38_001.tif</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Second: Warp to set projecton info and set GCP's to corners</FONT>
<BR><FONT SIZE=2 FACE="Arial">===============================================</FONT>
<BR><FONT SIZE=2 FACE="Arial">gdalwarp -s_srs epsg:4326 -t_srs epsg:4326 tiA38_001.tif woA38_001.tif</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Third: translate again to set all image criteria including -outsize.</FONT>
<BR><FONT SIZE=2 FACE="Arial">==============================================</FONT>
<BR><FONT SIZE=2 FACE="Arial">gdal_translate -scale -ot byte -outsize 67% 67% -mo "Area_or_Point = Area" woA38_001.tif oA38_001.tif</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Is it a bug that I have to split up the gdal_translate processes? </FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">The ideal: Everything on one line (DOES NOT WORK)</FONT>
<BR><FONT SIZE=2 FACE="Arial">========================================</FONT>
<BR><FONT SIZE=2 FACE="Arial">gdal_translate -gcp 378.19 196.43 -76.777261 45.67899 -gcp 6013.13 282.36 -76.744739 45.678655 -gcp 5890.36 7565.55 -76.745361 45.649344 -gcp 290.14 7492.18 -76.777866 45.649679 -scale -ot byte -outsize 67% 67% -mo "Area_or_Point = Area" -a_srs epsg:4326 A38_001.tif tiA38_001.tif</FONT></P>
</BODY>
</HTML>