[QGIS-trac] Re: [Quantum GIS] #3066: GdalTools: clipping based on a shapefile mask

Quantum GIS qgis at qgis.org
Fri Dec 3 17:31:13 EST 2010


#3066: GdalTools: clipping based on a shapefile mask
----------------------------------------------------------+-----------------
   Reporter:  brushtyler                                  |              Owner:  brushtyler   
       Type:  enhancement                                 |             Status:  new          
   Priority:  major: does not work as expected            |          Milestone:  Version 1.6.0
  Component:  Python plugins and bindings                 |            Version:               
   Keywords:  gdaltools, clip, rasterize, shapefile mask  |   Platform_version:               
   Platform:  All                                         |           Must_fix:  No           
Status_info:  0                                           |  
----------------------------------------------------------+-----------------

Comment(by brushtyler):

 Replying to [comment:1 lutra]:
 > 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:
 >
 >
 > {{{
 > gdalwarp -of GTiff -r lanczos -dstalpha -cutline shapefile.shp
 raster_input.tif raster_output.tif
 > }}}
 I know the -cutline option since the Hackfest when Tim told me about it.
 Thanks for reporting it, I forgot to add these information to this ticket.

 > would be nice too to add this options too in gdalwarp
 So,
 1. improving the clipper (clipping based on a shapefile mask)
 2. add the -cutline option in the gdalwarp tool too.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3066#comment:3>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list