Le samedi 21 mai 2011 16:21:22, Alexander Bruy a écrit :
> Hi,
> 
> when I clip singleband raster in GeoTiff format using shapefile as mask
> layer with gdalwarp I get two bands raster in output. First band is
> clipped raster and second - rasterized mask. Is this bug or feature? Is it
> really necessary to save rasterized mask?

No, it isn't necessary. But you asked for it by specifying the -dstalpha flag. 
Just remove it if you don't need the alpha channel.

> 
> I use next command
> gdalwarp -q -cutline mask.shp -dstalpha -of GTiff clearcuts.tif
> clearcuts_clip.tif
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to