I try to clip raster data with GDAL (in fact I am using QGIS, which produces me a command line for GDAL) The raster has been transformed to EPSG:3857, which is also the projection of the shapefile which contains the boundaries.
gdalwarp -dstnodata 0 -q -cutline D:\GIS\data\cutline_shape.shp
-crop_to_cutline -of GTiff D:\GIS\data\raster_3857.tif D:/GIS/data/clipped_raster.tif
The clipping processes without error, but the GDAL clips a wrong portion of the raster, it has the correct shape but is about 20 km to the north of the shapefile.