I'm currently trying to cutline crop a tif with a shapefile and no matter what I do I have pixel either overhanging the cutline or being cropped too early.
When I use arcpy to crop I get this result:
The code I am currently using with gdal warp is:
gdalwarp.exe -ot "float32" -s_srs "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs " -t_srs "+proj=utm +zone=48 +ellps=WGS84 +datum=WGS84 +units=m +no_defs "-of "GTiFF" -cutline mask.shp -crop_to_cutline infile.asc outfile.tif -wm 5000 -tap -tr 100 100 -overwrite
I am quite keen to use gdal if possible to do this cropping as it is considerably faster
SOLUTION was found in comments.
Exactly what I wanted:
My new problem to ponder next is: