Quantcast
Channel: Active questions tagged raster-calculator - Geographic Information Systems Stack Exchange
Viewing all articles
Browse latest Browse all 191

QGIS Raster Calculater Syntax - unable to combine 2 expressions

$
0
0

I have a slope (in degrees) of a DEM where I'm attempting to assign various values to various bands via Raster Calculator.The individual expressions work, but when combined they do not.

("slope-GDAL@1" >= 61) * 5

works, and

(("slope-GDAL@1" > 40) AND ("slope-GDAL@1" < 60)) * 10

works. BUT

("slope-GDAL@1" >= 61) * 5 +(("slope-GDAL@1" > 40) AND ("slope-GDAL@1" < 60)) * 10

does not work.I'm aware my error is very basic.

QGIS version3.36.3-Maidenhead

enter image description here


Viewing all articles
Browse latest Browse all 191

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>