In this section, we will create a proximity (distance) map to for site suitability analysis
The objective of this section is to use the raster layers from the data preparation section to create proximity maps (distance) as well as to normalise the values of the proximity map in order to accurate derive selection criteria analysis from it.
We will need to clip the raster layers to the study area.
From processing toolbox select under Raster > Clip as Mask Layer. Input DEM inside and polygon select Final_shape. To ensure the no data values show up correctly, assign ‘99999999’ to “specific nodata value to output bands”. We should see something similar to this.

This is to clip the DEM so that it will be aligned to the final_shape of our Study Area.
Repeat for the other raster layers.
Following instructions stated in other parts of the guide we have to save the new raster layers as layers in the GeoPackage. Ensure that ALL height and width of raster grids are set to 100 exactly.

Now, the Proximity operation of QGIS will be used to compute the proximity to roads layer. For the menu bar, select Raster -> Analysis -> Proximity (Raster Distance). In the window that appears, enter the following:
After running, the output should be similar to this:

Now we can move on to normalization of the map layer.
For the input layer of the Clip Raster by Mask Layer window, put in prox_road. For the mask layer, put in FinalShape.
For the Source CRS and Target CRS, ensure that both of them are EPSG : 23845 DGN95 / Indonesia TM-3 zone 54.1.
For the section ‘Assign a specific nodata value to output bands [optional]’, change it to 99999999. We should see this:

When we are done, click on ‘Run’. A new layer called Clipped by Mask Layer would appear. Save it as a geopackage and call it clippedprox_road, keeping in mind the project CRS.
At the Search pane of Processing Toolbox panel on the right hand side of the window, type ‘raster calculator’. Double-click on Raster calculator of Raster analysis. The dialog window of Raster Calculator appears.
At the Layers panel of Raster Calculator dialog window, double-click on clippedprox_road, it will appear in the expression. Select the divide key “/” and input the maximum value of the layer you are using. In this case for roads is “13263.8613281250”. We can find out the maximum and minimum value by going to right click on the proximity map layer > Properties and scroll down to bands.
We add in reference layer (FinalShape) as well as change CRS type into Project CRS.

After this is done, save the clipped layer as a GeoPackage layer. Give it an appropriate name like “factor_road”.
The output should be somewhat similar to below:

We then have to repeat these steps for:
For the airport and forest fire layers we need to make sure that the locations themselves have a value of 0. It is only values that are right outside them that take on a value of 1, because it is not logical to build over the airport or settlements as a recommendation.
We use the Serval tool again. This time we use “Select Raster based on Layer” tool. In the window that opens, select either the Urban Settlements or the Airport Buffer vector layer and then run the command. The raster should be selected in the shape of those two layers.

Following that we go to the top bar we enter a 0 to indicate non suitability.

When this is done, we then click on the “Apply Value to Selection” 2 buttons to the right of the number we just input. Then, the value should be changed to 0 for the entire selection.

The layer is now ready for future processing.