Data preprocessing

Before we start modeling, we need to have all the data regarding the elevation and slope of safe and unsafe locations.

At first, we will load DEM_PC.tif, which is the DEM file corresponding to our study area. This appears as follows:

Now, if we right-click on the DEM_PC layer and click on Properties, we will see that the coordinate reference system is WGS 84. We will now convert it to the projected coordinate reference system of UTM zone 46N, corresponding to Bangladesh. To reproject, click on Raster | Projections | Warp (Reproject)...:

Now, we will get a window for reprojecting. Select DEM_PC for Input layer and click ...

Get Hands-On Geospatial Analysis with R and QGIS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.