id summary reporter owner description type status priority milestone component version severity resolution keywords cc 4222 clipping with gdal_translate and gdal warp returns different pixels values lutra warmerdam "Pick a raster and a shapefile (you can use the sample data attached to this ticket http://hub.qgis.org/issues/3868 ) and then try to clip the raster with gdal_translate or with gdalwarp using the shapefile as clip layer {{{ gdal_translate -projwin 0.123237217937 44.0315093873 3.28820756354 40.6044095958 -of GTiff /home/gio/Downloads/srtm_37_04/srtm_37_04.tif /home/gio/Downloads/testmanualclip.tif }}} {{{ gdalwarp -q -cutline /home/gio/Downloads/FlxPyrAOI1/FlxPyrAOI1.shp -crop_to_cutline -of GTiff /home/gio/Downloads/srtm_37_04/srtm_37_04.tif /home/gio/Downloads/testshapeclip.tif }}} In the clipped rasters, the pixels values are identicla to the input one only when using gdal_translate. When clipping with the shapefile with gdal warp it is easy to see that many, but not all, pixels have a value that is different from the input one. I'm using gdal 1.8 from the Ubuntugis repository under Ubuntu 11.04 64 bit" defect closed normal GDAL_Raster 1.8.0 normal worksforme