[GIS] QGIS Error clipping raster

clipqgis-2.14raster

I use QGIS 2.14.10

I am trying to clip a raster with a vector layer mask (shapefile)using the clipper tool (gdal). There is an offset betwween the resulting raster and the vector mask (see picture below).

I also tried with the saga script : clip raster with polygon. This one is working correctly but can only open a temporary file. If i try to save hard file i have this message : "ERROR 1: Can't load requested DLL: C:\PROGRA~1\QGIS2~1.14\apps\saga\dll\gdal_MrSID.dll
127: La procédure spécifiée est introuvable."

I need to clip a raster with a polygon ina script.

enter image description here

Best Answer

Actually, it's coming from the rasterize command : the polygon vertices are on the center of each raster source pixel. When the polygon is rasterized, the pixel are shift of 1/2 pixel.

Related Question