I'm making a graphical modeler that creates me a kind of DSM, like that:
Image may be NSFW.
Clik here to view.
- I create a DEM for my extent (I have the DEM for my whole country).
- I have the Lidar for the height of the forest and I extract it formy extent.
- I also have a polygon that I rasterized. It is where theforest should be cut off (1/0 meaning yes/no).
As you can see, everything works fine. I have my raster layers (same CRS, same resolution, same extent).
Image may be NSFW.
Clik here to view.
Now, I want to do this in raster calculator:
Image may be NSFW.
Clik here to view.
So in words, it means if the forest is cut (No forest =1) then the value is DEM, and if the forest is not cut then the value is DEM+Lidar forest.
The problem is, I always have this error:
Image may be NSFW.
Clik here to view.
Impossible to load the source layer for INPUT_A: invalid valueError during raster calculator execution
I use QGIS 3.22
But as you can see, my modeler produises the 3 rasters (temporary files) without any problem:
Image may be NSFW.
Clik here to view.