Difference between revisions of "Slope Analysis using Quantum GIS Processing Toolbox"

From CUOSGwiki
Jump to navigationJump to search
Line 112: Line 112:
   
 
[[File:Image013.png|center]]
 
[[File:Image013.png|center]]
  +
  +
===Running a model===
  +
  +
Once all of the geoprocessing algorithms have been added, the model should look similar to image below.
  +
  +
Make sure that you '''Save (1)''' the model before '''Running the model (3)'''.
  +
  +
[[File:Image014.png|center]]
   
 
==Conclusion==
 
==Conclusion==

Revision as of 20:00, 17 December 2014

Purpose

Introduction

Data

About Quantum GIS 2.2

Acquiring Quantum GIS 2.2

Getting Started

Launching QGIS 2.2

When the installation process has finished, an icon should appear on your desktop similar to the one shown below.

Image001.png

Double-click on that icon and QGIS 2.2 will display on your screen.

Setting Project Coordinate Reference System (CRS)

Following the launch of QGIS 2.2, navigate to the top menu bar, select Project, Project Properties, then CRS.

Image002.png

Make sure that Enable 'on the fly' CRS transformation is checked (1). Once enabled, filter search (2) NAD83 / MTM zone 9 and select NAD83(CSRS) / MTM zone 9 under the Coordinate system reference systems of the world. When finished select (3) OK.

Image003.png

Adding Vector Shapefiles

Adding the Carp shapefiles or your desired shapefiles requires navigating to the menu bar, select Layer and Add Vector File...'.

Image004.png

A dialogue box will open asking for the destination where the shapefiles are located. Select Browse and navigate to the folder where you saved the shapefiles. Click Open.

Image005.png

Processing Toolbox

Open Processing Toolbox

If the Processing Toolbox is not already displayed on the right side of the QGIS 2.2 window, under Processing in the menu bar, select Toolbox.

Image006.png

This will display the Process Toolbox on the right side of the screen.

Image007.png

Creating a model using Graphical modeler

To create a model workflow navigate to the menu bar, under Processing, select Graphical modeler.

Image008.png

Once the modeler window has opened, you can begin to create the desired workflow. For this particular tutorial, the Carp shapefiles will be used to create a slope analysis workflow.

Before creating the model, you must enter a desired model name and group name (1). I named my model "Slope Analysis Turotial" under a group name called "GEOM 4008". Once a model and group name have been enter, select Save (2), and save the model to your desired folder. I would recommend creating a folder just for QGIS models under this project.

To begin your model, you'll first have to add an input parameter. On the left side of the modeler window, select Vector Layer (3). That will then display a Parameter definition (4) window. Enter the Parameter name as Input elevation points (or something similar), Shapefile to Point, and Required to Yes. Select Ok.

Now navigate to the Algorithm (5) tab, to being adding geoprocessing algorithms.

Image009.png

Adding Geoprocessing Algorithms

Inverse Distance Weighted (IDW)

The first algorithm that will be added is an Inverse Distance Weighted (IDW) interpolation. This particular algorithm can be found by doing a search filter for IDW (1), and select v.surf.idw (2) under GRASS Commands.

A window will open asking for interpolation specifications (3). Enter the specifications that you desire.

Make sure that the Input layer is the elevation point data initially added.

For my slope analysis, I had to enter ZVALUE into the Attribute table column with values to interpolate field because the column under the carpdem Attribute Table used for elevation points is named ZVALUE.

I also used a GRASS region cellsize of 10. This can be changed if you'd like, although it may take longer to process with a smaller cell size value. Also add an Output raster name of your choice. Select OK.

Image010.png

Slope

Following the IDW interpolation, a slope map expressed in degrees will be created using the IDW output.

Execute a search filter for Slope (1), and select Slope (2) under GDAL/OGR.

This will display a window for the Slope geoalgorithm (3). Leave the field parameters as default except for Slope expressed as percent to No. Make sure that the Input layer is the initial IDW output created (algorithm 0).

Also add an Output raster name of your choice. Select OK.

Image011.png

Aspect

Execute a search filter for Aspect (1), and select Aspect (2) under GDAL/OGR.

This will display a window for the Aspect geoalgorithm (3). Leave the specifications as default. Make sure that the Input layer is the initial IDW output created (algorithm 0).

Also add an Output raster name of your choice. Select OK.

Image012.png

Hillshade

Execute a search filter for Hillshade (1), and select Hillshade (2) under GDAL/OGR.

This will display a window for the Hillshade geoalgorithm (3). Leave the specifications as default. Make sure that the Input layer is the initial IDW output created (algorithm 0).

Also add an Output raster name of your choice. Select OK.

Image013.png

Running a model

Once all of the geoprocessing algorithms have been added, the model should look similar to image below.

Make sure that you Save (1) the model before Running the model (3).

Image014.png

Conclusion