I'm trying to process gdal:rasterize_over in QGIS Python console. The same problem persists - this function is rewriting the input sample raster instead of making a new one as output. I've tried (look below) to specify the name of output raster in the same folder, but to no avail:
processing.run("gdal:rasterize_over", {'INPUT':'C:/Users/user/vector_sample.gpkg|layername=water_bodies', 'INPUT_RASTER':'C:/Users/user/raster_sample.tif', 'FIELD':'band', 'ADD':False,', OUTPUT':'C:/Users/user/raster_rewrited.tif', 'EXTRA':'-at'}) What could you recommend me to modify? It looks like it should work perfectly, according to description of "gdal:rasterize_over" after prompting to parameters of gdal:rasterize_over in help menu.
gdal:rasterize