<div dir="ltr">Hi all,<br><br>I have a raster file (ascii) created through an IDW interpolation, with spatial resolution of 12.5m. I'm using gdalwarp to clip the raster with a polygon mask. I use the parameter "-tr 12.5 12.5" to keep the original resolution.<br><br>However, the clipped raster is not with the pixels aligned to the original raster pixels. It's like being moved slightly to one side (a distance less than the size of a pixel).<br><br>Making the cut with Clip grid with polygon of SAGA GIS, the resulting raster pixels keeps perfectly aligned to the original raster.<br><br>How can this deviation be explained with gdalwarp? In this case I have not used any resampling or coordinate transformation, I just made the clip, with the command:<br>gdalwarp -tr 12.5 12.5 -q -cutline D:\Testes\concelho.shp -crop_to_cutline -of GTiff D:\Testes\idw.asc D:\Testes\idw_clip_gdalwarp.tif<br><br>I leave my tests data so you can see the shift that I'm talking about:<br><br><a href="https://cld.pt/dl/download/2af4cb16-319f-4b43-988a-a529a9dc9806/Testes.zip">https://cld.pt/dl/download/2af4cb16-319f-4b43-988a-a529a9dc9806/Testes.zip</a> <br><br>I'm using GDAL 1.11.2.<br><br>Thank you very much!<br><br>Best regards,<br>Pedro VenĂ¢ncio<br></div>