I'm tryng to clip a raster with a shapefile using the tool in QGIS 2.18: Raster--> Extraction--> Clip.
Since I want not only to clip the raster layer, but also clip the dataset in order to have a lighter file (using the shape as a mask and checking the box "clip also the dataset" as you can see from the image [forgive me, in the image everything is in Italian]).
I tried to solve my problem with previuos discussion but nothing. In fact, the most similar was this one Rasterfile clipping error: Cannot compute bounding box of cutline, where the solution was to set the same CRS to the raster and the shape. I checked and it was the same CRS, but the error continued to appear.
If I try to clip the layer without checking the box for clipping also the dataset, it works.