<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Dear Andrew<BR>
i do have similar problem with gdal coordinate tranformation particularly with data georeferenced with geographic)lat/lon) coordinates. But it is Ok with map GeoX/GeoY coordinates. Infact i could not even extract the values of geotransform from file with Geographic la/lon georeferenced. I think GDAL works only with projected map coordinates.<BR>
<BR>S.Subramaniam <BR>
Scientist ,Land Resources Group, RS&GIS_Applications Area, <BR>
National Remote Sensing Agency <BR>
Hyderabad - 500 037 <BR>
INDIA<BR><BR><BR>
<BLOCKQUOTE>
<HR>
From: andrew.deklerk@gmail.com<BR>To: gdal-dev@lists.osgeo.org<BR>Date: Mon, 3 Dec 2007 10:05:32 +0200<BR>Subject: [gdal-dev] Gdal_Translate Geotransform error<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass EC_p.MsoNormal, .ExternalClass EC_li.MsoNormal, .ExternalClass EC_div.MsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass a:link, .ExternalClass EC_span.MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass EC_span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass EC_p.MsoPlainText, .ExternalClass EC_li.MsoPlainText, .ExternalClass EC_div.MsoPlainText
{margin-bottom:.0001pt;font-size:11.0pt;font-family:Consolas;}
.ExternalClass EC_p.MsoAcetate, .ExternalClass EC_li.MsoAcetate, .ExternalClass EC_div.MsoAcetate
{margin-bottom:.0001pt;font-size:8.0pt;font-family:'Tahoma','sans-serif';}
.ExternalClass EC_span.EmailStyle17
{font-family:'Arial Narrow','sans-serif';color:windowtext;}
.ExternalClass EC_span.BalloonTextChar
{font-family:'Tahoma','sans-serif';}
.ExternalClass EC_span.PlainTextChar
{font-family:Consolas;}
.ExternalClass .EC_MsoChpDefault
{;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass EC_div.Section1
{page:Section1;}
</STYLE>
<DIV class=EC_Section1>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Hi All </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I have done some searching to try solve my problem, but have been unsuccessful. I am relatively new to gdal, but not new to GIS. I apologise if my question's are basics..but an answer would help me significantly. I am running the latest build of Gdal for windows (1.43), and using the pre-compiled binaries. So here is my primary and secondary question: </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I have a tif file which i want to clip at certain coordinates, so I call the following command: </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"gdal_translate -projwin 16.25 -28.5 16.5 -28.75 H:\1_50000_April2007\2816\2816CB_2003_ED2_GEO.TIF 2816cb.tif" </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">On running this i get the following error: </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"Input file size is 8267, 10629 </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">The -projwin option was used, but the geotransform is </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">rotated. This configuration is not supported." </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I have checked my input images and coordinates passed through with projwin, and all seem fine. Gdalinfo of the files reveals the following coordinate information: </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Upper Left ( 16.1928674, -28.4559735) ( 16d11'34.32"E, 28d27'21.50"S) </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Lower Left ( 16.1904570, -28.8619556) ( 16d11'25.65"E, 28d51'43.04"S) </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Upper Right ( 16.5508568, -28.4576272) ( 16d33'3.08"E, 28d27'27.46"S) </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Lower Right ( 16.5484465, -28.8636093) ( 16d32'54.41"E, 28d51'48.99"S) </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Center ( 16.3706569, -28.6597914) ( 16d22'14.36"E, 28d39'35.25"S) </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">So my question is...what do I do to correct the error. I see no related messages between gdal_translate and geotransform. Do I need to do some programming to solve this problem? I shouldn’t think so, as what I am doing is pretty basic.</SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Second/third question is..if i do a straight translate to geotiff, my output image is 85Mb, while my input is only 6Mb (also tif, but with LZW compression) - how do I force LZW or export a file of the same size, or smaller, as the original?. I tried ECW but i received a "no support" message. Is ECW supported? </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Sorry for the long winded message, but i need to resolve this to do in Gdal. If it were just one image, I would use other GIS packages, but I have 2000 odd images to do and need to batch them </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Thanks </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Andrew</SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P>
<P class=EC_MsoPlainText><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN></P></DIV></BLOCKQUOTE><br /><hr />Live the life in style with MSN Lifestyle. Check out! <a href='http://content.msn.co.in/Lifestyle/Default' target='_new'>Try it now!</a></body>
</html>