<p dir="ltr">Hi,</p>
<p dir="ltr">See the -cutline option in gdal warp.</p>
<p dir="ltr">http://www.gdal.org/gdalwarp.html</p>
<p dir="ltr">Nicolas Cadieux M.Sc.<br>
Les Entreprises Archéotec inc. <br>
8548, rue Saint-Denis Montréal H2P 2H2<br>
Téléphone: 514.381.5112 Fax: 514.381.4995<br>
www.archeotec.ca</p>
<div class="gmail_quote">On Jul 3, 2015 00:15, user gdal <userofgdal@gmail.com> wrote:<br type='attribution'><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Dear friends I have an ERDAS INAGINE img file and an ESRI polygon shape file. How to programmatically clip (or irregular subset) the input img file using the shape file? Can the GDAL tools help in this regard? If you have code that can be shared with us, it'll be very nice. <br /><br /></div>With thanks,<br /><br /></div> Yours sincerely,<br /></div> B. Ramesh<br /></div> <a href="mailto:userofgdal@gmail.com">userofgdal@gmail.com</a><br /></div>
</blockquote></div>