I have raster files and shapefiles. I am trying to clip raster image by shapefile using gdal.Warp, however, the result is somehow disoriented.
I tried to use coordinate system parameters, but nothing worked.
Note: both shapefile and raster files are in the same coordinate system of 'EPSG:32635'.
The function for Python I'm using looks like this:
OutTile = gdal.Warp(fname_out, image_path, format="GTiff",
srcSRS = 'EPSG:32635',
dstSRS='EPSG:32635',
cutlineDSName=shape_file,
cutlineWhere=f"id={id:d}",
cropToCutline=True,
copyMetadata = True,
dstNodata = 0)
OutTile = None
