[gdal-dev] Possible bug. Clipping raster with gdalwarp.
Even Rouault
even.rouault at mines-paris.org
Sat May 21 10:28:13 EDT 2011
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
More information about the gdal-dev
mailing list