Skip to main content
edited title
Link
Babel
  • 74.9k
  • 15
  • 87
  • 227

QGIS Raster calculator - if statement

Tweeted twitter.com/StackGIS/status/1355576534929694720
deleted 6 characters in body
Source Link
Kadir Şahbaz
  • 78k
  • 57
  • 257
  • 404

ImI'm fairly new to QGisQGIS, but imI'm getting the hang of it. I have two layers - one DEM and one raster made from shape file (Buildings), but need one with higher Elevation where the buildings are for terraflow. But I can't seem to get the raster calculator to work with if Statement. I found a Workaround by assgningassigning a fixed elevation value to the buldingbuilding raster, that is higher than any Point on DEM.

merged

But on DEMs with high Elevation difference this means that some Buildings are over 50m tall!!! would like to make an if statmentstatement like this:

DEM A Buildings B

A = DEM

B = Buildings

if(B>A,A+10,A)

Any help would be appreciated

A = DEM

B = Buildings

if(B>A,A+10,A) 

Im fairly new to QGis, but im getting the hang of it. I have two layers - one DEM and one raster made from shape file (Buildings), but need one with higher Elevation where the buildings are for terraflow. But I can't seem to get the raster calculator to work with if Statement. I found a Workaround by assgning a fixed elevation value to the bulding raster, that is higher than any Point on DEM.

merged

But on DEMs with high Elevation difference this means that some Buildings are over 50m tall!!! would like to make an if statment like this:

DEM A Buildings B

A = DEM

B = Buildings

if(B>A,A+10,A)

Any help would be appreciated

I'm fairly new to QGIS, but I'm getting the hang of it. I have two layers - one DEM and one raster made from shape file (Buildings), but need one with higher Elevation where the buildings are for terraflow. But I can't seem to get the raster calculator to work with if Statement. I found a Workaround by assigning a fixed elevation value to the building raster, that is higher than any Point on DEM.

merged

But on DEMs with high Elevation difference this means that some Buildings are over 50m tall!!! would like to make an if statement like this:

DEM A Buildings B

A = DEM

B = Buildings

if(B>A,A+10,A) 
Source Link
TomS
  • 51
  • 1
  • 4

Raster calculator - if statement

Im fairly new to QGis, but im getting the hang of it. I have two layers - one DEM and one raster made from shape file (Buildings), but need one with higher Elevation where the buildings are for terraflow. But I can't seem to get the raster calculator to work with if Statement. I found a Workaround by assgning a fixed elevation value to the bulding raster, that is higher than any Point on DEM.

merged

But on DEMs with high Elevation difference this means that some Buildings are over 50m tall!!! would like to make an if statment like this:

DEM A Buildings B

A = DEM

B = Buildings

if(B>A,A+10,A)

Any help would be appreciated