12
Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Introduction to Quantum GIS An Overview: Workbook 2 Dr. Arthur J Lembo Jr., Eric Flint, John O'Brien, Alex Nohe 3/19/2013 Quantum GIS is a fully functional and modern Open Source desktop GIS package. This introduction to Quantum GIS will illustrate some of its basic capabilities through application of a practical tutorial.

Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Embed Size (px)

Citation preview

Page 1: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

Introduction to Quantum GIS An Overview: Workbook 2

Dr. Arthur J Lembo Jr., Eric Flint, John O'Brien, Alex Nohe

3/19/2013

Quantum GIS is a fully functional and modern Open Source desktop GIS package. This introduction to Quantum GIS will illustrate some of its basic capabilities through application of a practical tutorial.

Page 2: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

2 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

Setup: To complete the following workbook, Quantum GIS must be installed on your computer. It can

be downloaded at: http://hub.qgis.org/projects/quantum-gis/wiki/Download

Additionally you must download a local copy of the data files from github at: https://github.com/esrgc/qgistraining

Task Three: Demographics Analysis Proponents of the concept of environmental justice have found evidence to suggest that certain minority groups bear a disproportionate burden of environmental toxins. We’ll explore this in Richland County, SC. Select those census blocks that contain a TRI facility and calculate the total number of people living in the selected census blocks with a TRI facility. Based on the total number of people living in census blocks containing a TRI facility, calculate the percentage of people who are white and who are nonwhite. You will have to use the databk79.dbf file to find your answer.

1) Select by location (Census Blocks containing TRI facilities) Vector

Spatial Query Spatial Query

Page 3: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

Select source features from = bk79 Where the feature = Contains Reference features of = tri92 And use the results to = Create new Selection Apply * This GUI will appear

Apply Close * bk79 selected will render to map and appear in layers

Page 4: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

4 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

* Remember that this New Feature Class is created in Virtual Memory Only! Tables cannot be edited, must be saved as a shapefile if editing capabilities are needed. We will convert this feature classes to a shapefile after we perform the join*

* By R on the new layer and Rename you can label the new layer bk79_tri92 Virtual to avoid confusion with other layers

2) Join * In order to complete the demographics analysis required by this task you must first join bk79_tri92’s Virtual table to databk79.dbf R bk79_tri92 Virtual Properties

Joins Tab

Page 5: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

5 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

* This GUI will appear

Join Layer = databk79 Join Field = TRBK Target Field = TRBK [X] Cache join layer in virtual memory OK * Join will be added to Layers Properties GUI

Page 6: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

6 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

OK

* databk79’s fields will be joined to bk79_tri92 Virtual attribute table

3) Save bk79_tri92 Virtual as a shapefile for analysis R bk79_tri92 Virtual Save As…

Page 7: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

7 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

* This GUI will appear

Page 8: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

8 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

Format = ESRI Shapefile Save As Browse Select appropriate path and name for shapefile…(bk79_tri92) X Add saved file to map OK *Map will render with new shapefile in layers

Page 9: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

9 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

* Attribute table will include databk79 fields and be editable (editor button on toolbar will not be grayed out)

4) Edit Attribute table and Calculate/Analyze Demographics (Add Column / Field Calculator)

R bk79_tri92 Open attribute table

* Attribute Table will open

Page 10: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

10 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

Edit button on table toolbar Field Calculator

X Create New Field Output Field Name = PercWhite Output Field Type = Decimal Number (real) Output Field width = 10 Output Field Precision = 2 Operators ( Functions List Fields and Values white_ Operators / Functions List

Page 11: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

11 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

Fields and Values population Operators ) Operators * in Expression Field and type in 100 after * sign * Expression = (“white_” / “population”) * 100 OK

Save Edits Field Calculator

X Create New Field Output Field Name = PercNW Output Field Type = Decimal Number (real) Output Field width = 10

Page 12: Introduction to Quantum GIS - GIS for · PDF fileIntroduction to Quantum GIS 3 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013 Select source features

Introduction to Quantum GIS

12 Lembo A., Flint E., O'Brien J., Nohe A. ©Eastern Shore Regional GIS Cooperative 2013

Output Field Precision = 2 Operators ( Functions List Fields and Values white_ Operators / Functions List Fields and Values population Operators ) Operators * in Expression Field and type in 100 after * sign * Expression = (“nonwhite_” / “population”) * 100 OK

Save Edits Editing Mode Button to exit editor Close