How Do I Do That in QGIS PDF
How Do I Do That in QGIS PDF
Quantum GIS:
illustrating classic GIS tasks
In 1988, the United States Geological Survey (USGS) created a classic document titled The
Process for Selecting Geographic Information Systems1 (Guptil, et. al., 1988). The document
provided an overview of the process for selecting geographic information systems, in addition
to a checklist of functions that a GIS should include. The functions were broken into five
separate categories: user interface, database management, database creation, data
manipulation and analysis, and data display and presentation. The document became required
reading for those of us involved in the selection of GIS, and was often used as a supplementary
checklist in competitive benchmarks of GIS software. Although the document is over 20 years
old, many of the functions listed are still relevant today, and represent some of the most
commonly used features within GIS. In fact, the document was so forward thinking that most
GIS software products are still unable to perform all the tasks listed.
In 2004, a group of my students at Cornell University created the document: How do I do that in
ArcGIS/Manifold. After over 30,000 downloads of that document, I felt it was time to introduce
the GIS community to another software product: Quantum GIS. This document attempts to
illustrate the GIS processes listed in the USGS document using the free, and open source GIS
product Quantum GIS. Many individuals are beginning to experiment with Quantum GIS, and it
is our hope that this document assists these users in performing some of the more common
tasks.
This document represents a week long project for 5 of our advanced GIS students at Salisbury
University. Previously, the ArcGIS/Manifold document was developed by 16 students. The
resources and time available to illustrate these tasks prohibited the ability to review every
function listed in the USGS document. Therefore, we selected a large subset of the functions
though to represent the common GIS functions employed by users today. These functions are
the same ones found in the ArcGIS/Manifold document. We are especially grateful to those
individuals who volunteered as technical referees for each note.
None of the referees were affiliated with Salisbury University, and were anonymous to the
authors. One difficulty in creating this document was interpreting the actual meaning of some of
the USGS defined tasks. Another difficulty was attempting to find the most suitable approach
for solving the problem. As most users know, there are many ways to solve a particular
problem using GIS software. In this document we have attempted to illustrate the most
straightforward method for performing the tasks, and have relied on the referees to make sure
that a suitable approach was chosen. However, any errors remaining within the document are
our own, and not the fault of the referees. Also, while Quantum GIS allows for the creation of
sophisticated scripts, or integrate third-party software, we have attempted to only utilize those
features accessible out-of-the-box (and within the included add-ins) in hopes that it will provide
basic guidance for users of the software. It is our hope that this document provides a quick
1
Guptill, S., D. Cotter, R. Gibson, R. Liston, H. Tom, T. Trainer, H. VanWyhe. 1988. A Process for
Selecting Geographic Information Systems. Technology Working Group Technical Report 1. USGS
Open File Report 88-105.
How do I do that in Quantum GIS Page 4
(c) Arthur J. Lembo, Jr.
reference for users to find the necessary steps to complete the classic GIS tasks in Quantum
GIS.
This report is not yet completed in terms of editing, however, we felt that it was best to offer it to
the GIS community, warts and all, so that those interested in exploring Quantum GIS would get
a small jump start on their activities.
Database Management
This technical note demonstrates the process of adding columns to a table using
Quantum GIS. Simple tables are used to help illustrate the process.
1. Open a table
3. New Column
5. OK and the new column will insert on the right side of the table.
This technical note demonstrates the process of sorting tabular or graphical data using
Quantum GIS. Simple tables are used to help illustrate the process.
Data can be sorted in either ascending or descending values in any column while
maintaining the integrity of the related data for that record in all of the other columns.
The data within that column will automatically sort in either ascending or
descending order . The data in all other columns will adjust to maintain record
integrity.
This technical note demonstrates the process for calculating values for new fields in
database tables using Quantum GIS. Simple tables are used to help illustrate the
process.
5. Field Calculator will add the new field and populate it with the values
Other Considerations:
This technical note demonstrates the process of joining and relating data files and fields
using Quantum GIS. Simple tables are used to help illustrate the process.
Relating:
Quantum is unable to perform one to many or many to many relation functions at this
time
1. After importing files into Quantum open the files attribute tables to ensure that
there is a common field for joining
o R file in layers area and select Open Attribute Table for both files
This technical note demonstrates the process for digitizing points, lines, and polygons
using Quantum GIS. Simple tables are used to help illustrate the process.
3. Button for function that you want to accomplish in the Edit Toolbar
4. Save Edits
This technical note demonstrates the process identifying the intersection points of
overlapping lines using Quantum GIS. Simple tables are used to help illustrate the
process.
2. Vector
o Analysis Tools
Line Intersections
This technical note demonstrates the process of creating a polygon from line segments
using Quantum GIS. Quantum has several tools to convert lines to polygons depending
on whether the lines have closed or open vertexes. Simple tables are used to help
illustrate the process.
1. Vector
o Geometry Tools
Lines to polygons
2. R Layer group
o Save selection as
5. Vector in toolbar
o Research tools
Polygon from layer extent
Database
Database tables, raster data and vector data are all imported under Layer Add (Data Type) Layer
f)
Raster Data
e) Select Properties
c) Select Open
Analysis functions differ somewhat depending on whether the internal data structure is raster or
vector based. Analysis functions provide the capability to create new maps and related
descriptive statistics by reclassifying and combining existing data categories in a variety of ways.
Analysis functions also support: replacement of cell values with neighboring cell characteristics
(neighborhood analysis); defining distance buffers around points, lines and areas (proximity
analysis); optimum path or route selection (network analysis); and generating slope, aspect and
profile maps (terrain analysis)
Determining Max/Min
3) Right Click on poly layer (layer containing zones) Select Attribute Table
6) Lengths
Network Functions:
In QGIS it is possible to perform some simple network functions. It is necessary to start with a vector line
layer, generally one would use centerlines or whatever road data they have access to.
In order to build a road network, QGIS provides a ROAD GRAPH tool. To get to road graph, select the
vector tab, and scroll down to road graph and select settings.
So now that the network has been established it is possible through the shortest path plug in to
calculate the shortest path. Another innovation not found in some of the proprietary alternatives is the
ability to interactively select the start and stop points.
Defining drive-time zone: QGIS does not appear to have an available plug-in for defining drive-time
zone.
115. Geocoding addresses: Quantum makes this possible with a geocoding plugin. There is a plugin that
allows for one address at a time.
Thematically Shade Polygons: It is possible to color or shade layers based on a specific attribute of that
layer. To access the properties window for a layer you must double click the desired layer in the layers
window. The resulting window is below:
1. Double click on the layer of interest in the layer pane. The layer prosperities window will open,
make sure you are on the Style Tab.
LABLES:
1. Double click the layer you wish to set labels, in the properties window select Labels. Select the
Display labels box.
1. To add other thematic items in quantum go under the view tab and select decorations the options
include: north arrow, scale bar, and copyrite label.
Printable Map Layout: Quantum does have a layout option that is under File> Composer Manager under
which the user can add the desired map and make thematic changes to a printable map.
The user can add maps, labels, scale bars, legends, N. arrow, and even attribute tables.
1. In order to add each item the user selects the item they wish to add in the top toolbar and then
uses the mouse to click and drag that item to desired location and size. Items are able to be
manipulated once they are added.
2. QGIS has a commands history window that keeps a log of the users commands within the
layout, a nice feature when needing to go back to make changes.
3.
4. There is also a side window with item properties and composition tabs. This is where changes
can be made to properties. For example select the scale bar and in its properties tab you are
able to alter the segment size, map units per bar and assorted other aspects.
5.