Objectifs d’apprentissage
Now that you know your way around QGIS and InaSAFE, let’s go further. In this module, we will see how to prepare our own data so that it can be processed in InaSAFE. Much of what we cover in this module you’ve already done, though we will go over some of it in greater detail. We’ll be using the project created in this module throughout the rest of the unit, so be sure to save it along the way!
Let’s review the types of data used by InaSAFE.
Hazards are conditions, phenomenon, or human activity that potentially cause victims and destruction to society and environment. Frequently observed hazards are earthquakes, tsunamis, floods, landslides and tornadoes.
When we are working in InaSAFE, hazard data refers to a vector or raster dataset that represents the level and magnitude of an event that can potentially cause damages. To be used for impact calculation in InaSAFE, level and magnitude of an event scenario must be mapped over the area of interest. This means that hazard data must be geographic - it must have location. We have already looked at hazard data for the 2007 Jakarta flood and the Lembang earthquake. These hazard layers were produced from scientific modelling conducted by scientific organisations and government agencies. These are typical sources for such hazard data, although in cases of flood hazards such data may also be gathered from affected communities.
Generally, hazard data has the following characteristics:
In this module, our hazard input will be a flood in the village of Sirahan, in Magelang regency in Central Java. The data for this flood comes from participatory mapping activities done by community members as part of the REKOMPAK project. The data is in the training folder qgis/Sirahan/.
Exposure data refers to natural and man-made objects that may be affected if a disaster scenario really happens. In this module we will use building exposure data created in OpenStreetMap.
The InaSAFE impact functions produce an output layer representing potential damages or losses on the affected exposure layer. This output layer will be created once the impact calculation process is finished processing. InaSAFE has many impact functions available, which are listed through the ‘Impact Functions Doc’ menu (see below). The impact calculation will only be possible when users provide the hazard and exposure layer datasets and, when necessary, users define the required parameters through the keyword Wizard correctly.
Aggregation is used to reclassify the result of the impact calculation according to a specific administrative boundary level.
Keywords define which category a dataset belongs to, whether hazard or exposure. They are also used to define specific parameters to be considered, as we shall see. After you calculate the impact of a scenario with InaSAFE, what next? Well, the impact calculation can be used to prepare a contingency plan. That’s why relevant questions and remarks are displayed in the Result section, which may then be considered by disaster risk managers or planning managers.
In previous scenarios, we used example data provided in the training directory, but to set up our scenario in the village of Sirahan, let’s access the OSM data ourselves to use as our exposure layer. We will use the OSM buildings to calculate how many buildings (and which) will be inundated when a flood occurs similar to our hazard model.
We’ve worked with OSM data a lot already. Now we will utilise a website where we can quickly and easily access the data from OSM.
The HOT Export website allows you to choose an area and create a data extract from that area. Then you can download the data in a variety of formats that are easily read by QGIS.
The page should look something like this:
You will be asked to define a presets file. This is like the presets that you added to JOSM in the previous unit, except here, they define the attributes that the HOT export server will provide.
It may take a few minutes for the data extraction job to process. When it is finished, the page will change and you will see a list of files you can download like this:
For reasons that will become clear later, we need to change the map projection from the default OSM projection (WGS 84) to WGS 84 / UTM 49S. In other words, we need a CRS that uses metres, not degrees.
The Save vector layer as... dialog will look like this:
This is the layer that we will be using as our exposure data. You can remove the other OSM layers, or if you would like them to remain visible, go to Settings ‣ Project Properties and enable ‘on the fly’ transformation.
Since we’ll be using this buildings layer as our exposure, we need to set the keywords so that InaSAFE knows what the layer contains. If you remember from Unit 2, this is done with the keywords Wizard.
The hazard data that we have used previously has come from government agencies and scientific institutions. This time, we will use data that came from community mapping activities, that is, from community members on the ground. The data was created as a paper map and later converted into digital format. The data has already been prepared, so we simply need to add it as our hazard layer.
You can see that this layer is already known to InaSAFE, so presumably it has keywords already set.
We need to add some data to this layer so that QGIS can run the flood function correctly. When QGIS runs the flood function, it checks every feature in the hazard layer to make sure that it is in fact a flood prone area. Hence, each feature must have an attribute named “AFFECTED”. First, let’s add the new column to our layer.
Everything is prepared now - our layers are loaded, the keywords are set, and we’ve ensured that the layers have the data that InaSAFE expects. Make sure the question form in InaSAFE looks like this
and then click Run!
The results should looks something like this:
Save your project! We’ll be using it in the upcoming modules...
We’ve run a few scenarios, but what is next? In the next modules we will use our QGIS skills to find the best evacuation routes for people to use in the case of the flood disaster, as well as examining appropriate places for IDP camps.