Matt,<br><br>I was able to successfully crop a raster image using your gdal_translate suggestion:<br><span style="background-color: rgb(255, 102, 102);">"Clipping using projection coordinates":</span><br style="background-color: rgb(255, 102, 102);">
<a style="background-color: rgb(255, 102, 102);" onclick="return top.js.OpenExtLink(window,event,this)" href="http://yukongis.ca/bin/view/Main/GDAL" target="_blank">http://yukongis.ca/bin/view/Main/GDAL</a><br><br>I still curious what I did wrong when trying to do the same thing using OpenEV.
<br><br>John Mitchell<br><br><br><br><br><div><span class="gmail_quote">On 12/11/06, <b class="gmail_sendername">John Mitchell</b> <<a href="mailto:mitchelljj98@gmail.com">mitchelljj98@gmail.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;">
Hi Matt,<br><br>Thanks for the suggestions. I tried your suggestion below:<br><span style="background-color: rgb(255, 102, 102);">Cropping can be done interactively with OpenEV, see</span><span class="q"><br style="background-color: rgb(255, 102, 102);">
<span style="background-color: rgb(255, 102, 102);"><a href="http://yukongis.ca/bin/view" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://yukongis.ca/bin/view</a></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex; background-color: rgb(255, 102, 102);">
/Main/ClipRasterWithoutArcInfo for an example.</blockquote><br></span>I followed all your steps and it ran the translation but when I opened up the translated file it still is the entire image not the cropped image that I outlined.
<br><br>John Mitchell<div><span class="e" id="q_10f71f9c19b0abd9_3"><br><br><div><span class="gmail_quote">On 12/10/06, <b class="gmail_sendername">maphew (matt wilkie)</b> <<a href="mailto:maphew@zworg.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
maphew@zworg.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 need the capability to be able to crop a GeoTiff based on either<br>> rectangular coordinates or against a shape rectangular object.<br><br><br>gdal_translate with the either the -srcwin or -projwin parameters do
<br>the former. Srcwin uses pixel coordinates and projwin uses projection<br>coordinates. I'm always getting the order of the coordinates mixed up so<br>I wrote up this little helper (after asking the list for help...),<br>
"Clipping using projection coordinates":<br><a href="http://yukongis.ca/bin/view/Main/GDAL" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://yukongis.ca/bin/view/Main/GDAL</a><br><br>
Croppign can be done interactively with OpenEV, see<br><a href="http://yukongis.ca/bin/view/Main/ClipRasterWithoutArcInfo" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://yukongis.ca/bin/view/Main/ClipRasterWithoutArcInfo</a> for an example.<br><br>cheers,<br><br>-matt<br></blockquote></div><br><br clear="all"><br></span></div><span class="sg">-- <br>John J. Mitchell
</span></blockquote></div><br><br clear="all"><br>-- <br>John J. Mitchell