[Qgis-user] Clip raster to irregular polygon
    Giovanni Manghi 
    giovanni.manghi at gmail.com
       
    Tue Sep 28 11:34:37 PDT 2010
    
    
  
Hi,
> > I use this
> > 
> > gdal_rasterize -i -burn 255 -b 1 -b 2 -b 3 -l [SHAPELAYER] [SHAPEFILE]
> > [RASTER]
> > 
> > or using a GRASS mask.
> 
> It seems non-intuitive that this is not in the gdal tools plugin. 
> The tool marked clipper does something, although I'm not sure what. 
> I would expect it to do the burn option with gdal_rasterize. 
> Instead, it appears to be running gdal_merge.py, at least when I just tested it.
> 
> Perhaps this is a bug in gdal_tools?
are different things/tools:
gdal_merge mosaics images, if the defined extent (-ul_lr) is part of
just one image then... it clips it. The extent is obviously rectangular.
with gdal_rasterize you can give a color to everything stays outside the
boundaries of a given shapfile.
cheers
-- Giovanni --
    
    
More information about the Qgis-user
mailing list