Data Preparation and Cleaning

A new article created using the Distill format.

1. Selection of Required Data

Before proceeding there are some geometrical errors which we have to be fixed.

Clipping Layers into Study Area

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

Processing Polyline (Road Layer)

Processing Area (Polygon) Data - Topographical Data

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.

Image was used to process road section data but the methodology is the same

Processing Area Data - Tuplah

Processing Point Data

Processing Point and Polygonal Data

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.

Processing Raster (DEM) Layer

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.