https://issues.qgis.org/https://issues.qgis.org/favicon.ico2010-11-30T11:08:26ZQGIS Issue TrackingQGIS Application - Feature request #3066: GdalTools: clipping based on a shapefile maskhttps://issues.qgis.org/issues/3066?journal_id=232112010-11-30T11:08:26ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>apparently there is also a way to do it with gdalwarp, and adding at the same time the alpha channel to the output raster, ex:</p>
<pre>
gdalwarp -of GTiff -r lanczos -dstalpha -cutline shapefile.shp raster_input.tif raster_output.tif
</pre>
<p>would be nice too to add this options too in gdalwarp</p> QGIS Application - Feature request #3066: GdalTools: clipping based on a shapefile maskhttps://issues.qgis.org/issues/3066?journal_id=232122010-12-03T02:23:41ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>PS<br />Thanks to Pedro VenĂ¢ncio for the suggestion</p> QGIS Application - Feature request #3066: GdalTools: clipping based on a shapefile maskhttps://issues.qgis.org/issues/3066?journal_id=232132010-12-03T13:31:11ZGiuseppe Sucamelibrush.tyler@gmail.com
<ul></ul><p>Replying to [comment:1 lutra]:</p>
<blockquote>
<p>apparently there is also a way to do it with gdalwarp, and adding at the same time the alpha channel to the output raster, ex:</p>
</blockquote>
<pre>
> gdalwarp -of GTiff -r lanczos -dstalpha -cutline shapefile.shp raster_input.tif raster_output.tif
</pre><br />I know the -cutline option since the Hackfest when Tim told me about it.<br />Thanks for reporting it, I forgot to add these information to this ticket.
<blockquote>
<p>would be nice too to add this options too in gdalwarp</p>
</blockquote>
<p>So, <br />1. improving the clipper (clipping based on a shapefile mask)<br />2. add the -cutline option in the gdalwarp tool too.</p> QGIS Application - Feature request #3066: GdalTools: clipping based on a shapefile maskhttps://issues.qgis.org/issues/3066?journal_id=232142011-03-14T09:18:37ZGiuseppe Sucamelibrush.tyler@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>In Progress</i></li></ul><p>Added -cutline option to gdalwarp tool (<a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/36fc12ad74e5a321cb84158c70e54877e120b0b0" title="added -cutline option to gdaltools warp tool, to fix #3066 git-svn-id: http://svn.osgeo.org/qgi...">36fc12ad</a> (SVN r15477))</p> QGIS Application - Feature request #3066: GdalTools: clipping based on a shapefile maskhttps://issues.qgis.org/issues/3066?journal_id=232152011-03-31T00:23:23ZBill Williamson
<ul></ul><p>Works for me in Win7 in trunk<br />use cutline in gdalwarp.<br />Why is ticket still open?</p> QGIS Application - Feature request #3066: GdalTools: clipping based on a shapefile maskhttps://issues.qgis.org/issues/3066?journal_id=232162011-03-31T00:30:15ZGiuseppe Sucamelibrush.tyler@gmail.com
<ul></ul><p>I want to add it to the Clipper tool, so it can be used to clip whatever kind of layer.</p> QGIS Application - Feature request #3066: GdalTools: clipping based on a shapefile maskhttps://issues.qgis.org/issues/3066?journal_id=232172011-04-15T08:58:20ZGiuseppe Sucamelibrush.tyler@gmail.com
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Closed</i></li></ul><p>Fixed in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/adbcbcbb7660aadc358f1bee535594993704dfd9" title="add cutline option to clipper to fix #3066 git-svn-id: http://svn.osgeo.org/qgis/trunk@15712 c8...">adbcbcbb</a> (SVN r15713).</p>