Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open a new project in QGIS

  2. Add the FEWSGrid.txt as an delimited text layer to a empty project (Layer -> Add Layer -> Add Delimited Text Layer). In the popup window select 'First record has field names', e.g.:

  3. Add the shape files (Layer -> Add Layer -> Add Vector Layer). After this the screen should look like this: 

  4. Introduce unique IDs for each sub-area (or "sector") and each receptor
    1. Select a layer and open its attribute table (Right click -> Open attribute table)
    2. 'Toggle editing mode' (pencil icon)
    3. 'Open field calculator'
      1. Check the 'Create a new field' box and choose an 'output field name' (receptorID or areaID depending on the layer you selected)
      2. Set 'Expression' to $rownum
      3. Click 'Ok'
    4. 'Save edits' and once more 'Toggle editing mode'
    5. Repeat a-d for the other layer
  5. Intersect the receptor layer with the area layer (Vector -> Geoprocessing Tools -> Intersect) and save the new layer under a new name (in this example ResBuildings_hotspot.shp)
    The resulting layer will contain all the buildings within the hotspot and associate them with the areaID of the area there in. 
    Image Added
  6.  Create a new polygon shape file from the FEWSGrid layer (Vector -> Geometry tools -> Voronoi Polygons) and save under a new name (in this example FEWSGrid_polygon.shp). 

 


 

 

 

 

 

  1. Add the shapes file (Layer -> Add Layer -> Add Vector Layer)

...