Slope Analysis using Quantum GIS Processing Toolbox

From CUOSGwiki
Jump to navigationJump to search

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

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. 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.

Image010.png

Conclusion