I have a raster file, used "clip raster by mask layer", then I used rastercalculator to set the values of the new rasterlayer to zero and now I would like to merge them together again.

However, the merge tool doesn't work and it doesn't give any error messages except telling me that it's not working.

The raster files have the same projection, both are GEOTIFF, they have the same resolution and both are Float 32... perhaps there is something I'm not seeing?

enter image description here

Here I include images of the used settings and the output dialog:

enter image description here

enter image description here

The red error message just says "the following layer has not been created. More information on how this algorithm works can be found in the QGIS main Window".

I'm using the standalone LTR Version QGIS 3.4.14

What could be a reason why it's not working?


The issue was reported in the following link: https://github.com/qgis/QGIS/issues/33386.

Already fixed in python3-core package delivered via OSGeo4W.

In a Standalone install, a workaround is about include in the environment a PYTHONPATH variable with the Scripts folder, as repported by Giovanni Mavarello in the following message https://github.com/qgis/QGIS/issues/33386#issuecomment-569140502:

  • search, in the QGIS installation directory, for the folder where the gdal_merge.py, gdal_polygonize.py, etc. files are present. In your case it could be: G: \ QGIS3 ~ 1.10 \ apps \ Python37 \ Scripts

  • in the QGIS window from the Settings / Options ... / System menu you must insert a new row in the "Environment" box, with the value "Overwrite" (or "Prepend") in the first column ("Apply"), the value " PYTHONPATH "in the second column (" Variable "), and in the third column (" Value ") the path of the above folder.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.