A new article created using the Distill format.
The datasets that are being used for the project include:
After downloading and opening the data, we had to examine individual layers and see what is to be kept.
For the topographical map layer, we would have to merge the datasets showing different natural/artificial features to supplement, and clip the layers to within the study area.
The study area to be used is derived from the population and demographic layer.
Import the shapefile into Qgis by double clicking on it. (BATAS_DESA_DESEMBER_2019_DUKCAPIL_KALIMANTAN_TIMUR.shp)
We need to select the suitable study area since the layer would contain the regencies, districts and sub-districts for the entire province of East Kalimantan. Right click on the layer, open Attribute Table and first we filter by the “KAB_KOTA” column. Open the “Select Fetures using an Expression” field and enter the following: “KAB_KOTA” = ‘KUTAI KARTANEGARA’ or “KAB_KOTA” = ‘KOTA BALIKPAPAN’ or “KAB_KOTA” = ‘PENAJAM PASER UTARA’ or “KAB_KOTA” = ‘KOTA SAMARINDA’.

In the resultant selected layers, we toggle editing on the layer and then copy the selected areas and paste it as a temporary layer by going to Edit > Paste Features As > Temporary Scratch Layer.
Repeat the steps above, but with the filtering by the specific districts as mentioned in the project brief:
This time we have to filter on the column ‘KECAMATAN’ instead.
We can manually select the districts and sub-districts by sorting by the “KECAMATAN” column. We select all the districts and sub-districts that do NOT fall into the ones listed above, and then invert the selection using the invert selection tool.
Following that, we save the selection into a new temporary layer using the steps above (Edit > Paste Features As > Temporary Scractch Layer)
Before proceeding there are some geometrical errors which we have to be fixed.



The processing of each layer will differ according to their data type. We have sorted the layers that have been used into the following categories:
Points
Area
Mixed
Lines
Raster
Import the layer (gis_osm_roads_free_1.shp).
There is a need to join incomplete roads. Examine each road segment closely and find out which road segments can be joined, for example roads which go above the bridge.
We need to clip the road to the study area. Go to Vector > Geoprocessing Tools > Clip, make sure the newly imported road layer is input as the Input Layer, and the layer to be used as a clip is the FinalShape layer (Overlay Layer)that had been prepared.

Save the temporary layer as a GeoPackage layer with the correct CRS as EPSG:23845 (DGN / Indonesia TM-3 zone 54.1) and make sure under the “Geometry” tab, the data type is changed to “Line” and the “Include Z values” is not checked.
Following that, toggle editing on the layer by clicking on the pencil icon. Make sure the selection method is “Select Features” and not other selection methods.
Select the 2 road segments that are supposed to be joined together.





Remove all the previous temporary layers created by right clicking on them and selecting “Delete Selected Layer”.
Save the newly created road layer by right clicking on it in the menu and selecting Save Features As, and in the resultant box that comes up, ensure that the GeoPackage file that the base map layer was selected, is selected under the file name and the layer name is set to “Roads”, and the map CRS is set to EPSG:23845.
The area data needs to be merged into a single layer for analysis.

NB: If the geometries are invalid it is required to use the “Fix Geometries” tool from the Processing > Toolbox (CTRL+ALT+T) before moving forward with the analysis.


The different areas then need to be combined together. Go to the Processing toolbox on the bottom right hand corner of the page and select “Merge vector layers”.
In the resulting window, select the desired layers to be merged, for example:

We keep the CRS as it is; we will change the CRS when we export as a GeoPackage.
After merging, the layers should appear as this:

The layers can now be saved as a GeoPackage. Click on the newly merged layer, go to Export > SavE Features As > and name the layer a good name (for example, Pemukiman Vector). Make sure GeoPAckage is selected as the format, and the chosen GeoPackage is the one in which the base layers are saved in.
Change the “Geometry Type” to ’Polygon" and uncheck the “Include Z-dimension”.

For Tuplah, we only need to filter the data that is to be selected.
We might need to fix the geometries, by using the “Fix Geometries” tool explained int he Polyline section.
We right click on the layer and select > Open Attribute Table. In the table that appears, click on “select by Expression” and run the following command:
Following that, we right click and save selected layer as a GeoPackage. Make sure the projection is changed to EPSG:23845 (DGN / Indonesia TM-3 zone 54.1).
Repeat the same step for the agricultural layer.
The point data needs to be merged into a single layer for analysis.
We first open up the characteristic of concern, for example, toponimi layer (TOPONIMI_PT_50k).
In some layers, we are only interested in certain attributes. For example, for the Toponimi Layer, we are interested in the “Kantor Banks”. Therefore, some filters need to be applied.
We right click on the layer > Open Attribute Table.
We toggle the editing by clicking the pencil icon near the top of the window.
Following that, we sort the table by “Remark” by clicking on it, and then selecting all the rows with attribute Remark = “Kantor Bank”.

We then close the attribute table, and toggle editing on the Toponimi layer (or any other point layer of concern). Following that, we copy the selection, and paste it in a new scratch layer by going to Edit > Paste > Temporary Scratch Layer. It would be good practice to rename the temporary scratch layer for later (for e.g, KK Kantor Bank, PPU Kantor Bank etc)
We repeat all steps up till this one, for the same data of interest, for other regencies / cities.
Repeat the steps above for the line data, in order to merge the layers:
First, we select the layers that describe our attribute in question. Go to the Processing Toolbox and search for “Merge Vector Layers”, and select the layers which we have just added. For example, if we were working on the toponimi layer we would add in the temporary layers created previously e.g KK Kantor Bank, PPU Kantor Bank, KS Kantor Bank. We leave the CRS as is, and then run the algorithm.



This section should only be applicable to the airport layer, because the point data for airports comprise an additional airport that is not presented in the area data. It is important, because this missing airport is the new international airport for Samarinda and can absolutely not be eliminated from the study.
The general approach is to create a new polygon where the data is needed.
Import the airport polygon and point layers. And view them. We see that there’s a point that doesn’t have a corresponding polygon, and a polygon inside Samarinda that is the decomissioned airport which has to be deleted.





After these 2 modifications are complete we then toggle editing off by clicking on the pncil button again then accepting the changes that are made.
Following that, we follow the rest of the procedures in the Area Dataset processing in order to merge the vector layers together and then export them.
There are some erroneous values neaar the wetlands that have to be resolved and this is a rudimentary way of doing ig.
Click on plugin > search “Serval”.

Click Install, we should be able to see it downloaded similar to the screenshot below.

Under the Layer tab > select Add Layer > Raster Layer. The data source manager window will pop up. From source: select under the Provinsi Kalimantan Timur folder, import DEM SRTM 30M KALIMANTAN TIMUR.tif into the Qgis project.

Using previous steps, save the layer into geopackage format and rename the file as DEM, change CRS to project CRS, then click on save.
We will need to reproject it to 100x100m in order for our further analysis. Go to the Processing Tools on the right hand side and click on Reproject (Warp).

In the window that comes up, make sure that the window settings are set as follows: (The output file resolution in target georeferenced units should be 100)

We the run the command then we will get a reprojected layer. Again we save that layer into the GeoPackage format and we will use this for further analysis.

Next we will use Serval to select the DEM layer and change the values Zooming into the Mangrove layers, there are several anomalies where the pixel value is over 1000. It is not possible for the height level to be above 1000 in that area and not with such a steep gradient.

We go to serval’s select by polygon tool and draw a polygon around it. Then, on the top bar we enter a low value (e.g 10).


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 10 for the entire selection.
The layer is now ready for future processing.