Software Tutorial for the Installation of Quantum GIS 1davidmckie.com/Quantum GIS 1.8 Installation and Tutorial 1.pdf · 1 Software Tutorial for the Installation of Quantum GIS 1.8

Embed Size (px)

Citation preview

  • 1

    Software Tutorial for the

    Installation of Quantum GIS 1.8

    JOU1526 - COMPUTER-ASSISTED REPORTING Algonquin College Fall Semester 2013

    Professor : David McKie

    GIS Assistant: Matt Pulleyblank

  • 2

    Installation of Quantum GIS 1.8x (Both Mac and Windows based platforms)

    Installation of Quantum GIS 1.8x (Mac OS Platforms)

    Installation of Quantum GIS 1.8x (Windows OS based platforms)

    Go to the following link: http://www.kyngchaos.com/software/qgis 1. Install the Both Frameworks First !

    http://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.9.dmg

    2. Then this one: - http://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.16-1.dmg

    3. Then Install QGIS 1.802 from the following site : http://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmg

    Installation of Quantum GIS 1.8x (Windows based platforms) 1. Installation for QGIS 2.01 (32bit) -

    http://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exe

    2. Installation for QGIS 2.01 (64bit) - http://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exe

    http://www.kyngchaos.com/software/qgishttp://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.9.dmghttp://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.9.dmghttp://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.9.dmghttp://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.9.dmghttp://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.9.dmghttp://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.16-1.dmghttp://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.16-1.dmghttp://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.16-1.dmghttp://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.16-1.dmghttp://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.16-1.dmghttp://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.16-1.dmghttp://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.16-1.dmghttp://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmghttp://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmghttp://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmghttp://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmghttp://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmghttp://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmghttp://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmghttp://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmghttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exehttp://qgis.org/downloads/QGIS-OSGeo4W-2.0.1-3-Setup-x86_64.exe

  • 3

    Installation of Quantum GIS 1.8x (Both Mac and Windows based platforms)

    Installation of Quantum GIS 1.8x (Mac Platforms)

    Installation of Quantum GIS 1.8x (Windows based platforms)

    Some Helpful Mac OS sites :

    1. Which Mac OS do I have? - http://www.maclife.com/article/how_can_i_tell_what_version_mac_os_x_i_have_my_computer

    2. http://www.gislounge.com/installing-qgis-on-the-mac/

    3. http://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdf

    Some Helpful Windows OS sites : 1. http://docs.qgis.org/1.8/pdf/QGIS-1.8-

    UserGuide-en.pdf

    http://www.gislounge.com/installing-qgis-on-the-mac/http://www.maclife.com/article/how_can_i_tell_what_version_mac_os_x_i_have_my_computerhttp://www.maclife.com/article/how_can_i_tell_what_version_mac_os_x_i_have_my_computerhttp://www.maclife.com/article/how_can_i_tell_what_version_mac_os_x_i_have_my_computerhttp://www.maclife.com/article/how_can_i_tell_what_version_mac_os_x_i_have_my_computerhttp://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://www.gislounge.com/installing-qgis-on-the-mac/http://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdfhttp://docs.qgis.org/1.8/pdf/QGIS-1.8-UserGuide-en.pdf

  • Once Installation is Complete (Familiarisation with the QGIS toolbars and Layout)

    Open QGIS by Selecting the Quantum GIS Desktop (1.8.0) under the Quantum GIS Lisboa folder There may be numerous shortcuts placed on your desktop, you may remove all of them except the underlined above to avoid clutter and confusion.

  • Once Installation is Complete (Familiarisation with the QGIS toolbars and Layout)

    Familiarise your self by hovering the cursor over each GUI and drop down menu.

  • 6

    Software Tutorial for

    Performing a Spatial Join In

    Quantum GIS 1.8

    JOU1526 - COMPUTER-ASSISTED REPORTING Algonquin College Fall Semester 2013

    Professor : David McKie

    GIS Assistant: Matt Pulleyblank

  • QGIS Project Setup ( create QGIS Project )

    Add GIS Vector Data

    (Wards_2010.shp)

    Convert .csv to Shapefile (.shp)

    Adjust all data for viewing and

    Save Project.

    Remove SyringeQGIS.csv file from Project

    Add Tabular Data (SyringeQGIS.csv)

    Analysis 1 : Calculate # of Syringes

    per Ward

    Analysis 2 : Spatial Join of

    CityWards and Syringes

    Export results to .csv

    Export results to .csv

    Label Wards for Display

    Display Analysis Results by Pie Chart

    Export Map Display to Image

    (.jpg, .bmp, .tif )

    Display Analysis Results by Bar Graph

    2 1 3 4

    5 6 7

    8

    9

    10

    11 12 13 14

    QGIS Overall Workflow

    7

  • QGIS Project Setup ( create QGIS Project )

    1

    1. First Select the Settings tab

    2. Select Project Properties

    8

  • QGIS Project Setup ( create QGIS Project )

    1

    9

    3. Type your Project Title here

    4. Ensure this states RELATIVE

    5. Select this tab (CRS) and proceed to next page

  • QGIS Project Setup ( create QGIS Project )

    1

    10

    7. Ensure that this is CHECKED at all times

    8. Click APPLY, then OK

    Next Step 2 > Importing (adding) the City Ward Data to the project.

  • 11

    Add GIS Vector Data

    (Wards_2010.shp)

    2

    1. Click on this GUI to Import your City Ward (Wards_2010.shp) data into QGIS

    2. Click on Browse

  • 12

    Add GIS Vector Data

    (Wards_2010.shp)

    2

    3. Navigate to the folder which contains the City Ward Data

    4. Ensure that ESRI Shapefiles is selected

    5. Click OK

  • 13

    Results should look similar to this ( the colour of the polygons will vary)

    Add GIS Vector Data

    (Wards_2010.shp)

    2

  • 14

    One last thing to do is to set the projects coordinate system

    Next Step 3 > Importing (adding) the Syringe Data to the project.

    Add GIS Vector Data

    (Wards_2010.shp)

    2

    6. Highlight and Right Click on the Wards_2010 layer. Click on : > Set Project CRS from Layer

    At this point, Save your Project

  • 15

    1. Click on this GUI to Import your Syringe (QGISSyringe.csv) data into QGIS

    Add Tabular Data (SyringeQGIS.csv)

    3

  • 16

    2. Click on Browse to Locate and select (QGISSyringe.csv)

    3. Ensure that Comma is checked

    4. Select Longitude for X-Field and Latitude for Y-Field

    5. Click OK.

    Add Tabular Data (SyringeQGIS.csv)

    3

  • 17

    6. Type WGS84 in the Filter area.

    7. Select World Geodetic System 1984 (Authority ID # IGNF : WGS84G).

    8. Click OK.

    Add Tabular Data (SyringeQGIS.csv)

    3

  • 18

    Results should look similar to this ( the colour of the points will vary)

    Next Step 4 > Converting the .csv file to a shapefile ( .shp) for analysis

    Add Tabular Data (SyringeQGIS.csv)

    3

    At this point, Save your Project

  • 19

    Convert .csv to Shapefile (.shp)

    4

    1. Highlight SyringeQGIS Layer, right click and select Save As.

  • 20

    Convert .csv to Shapefile (.shp)

    4

    2. Select ESRI Shapefile.

    3. Type SyringeLocations and click Browse. Select the folder in which your data is located.

    5. Check the box for: > Add saved file to map. Click OK

    4. Select Project CRS

    Next Step 5 > Removing redundant Files from project.

  • 21

    Remove SyringeQGIS.csv file from Project

    5

    1. Highlight SyringeQGIS Layer, right click and select Remove.

    Next Step 6 > Converting the .csv file to a shapefile ( .shp) for analysis

    At this point, Save your Project

  • 22

    Adjust all data for viewing and

    Save Project.

    6

    1. Double-Click on Square to change how this layer looks.

    2. Adjust Colour here.

    Next Step 7 > Analysis of How Many Syringes are in Each Ward.

  • 23

    Analysis 1 : Calculate # of Syringes

    per Ward

    7

    1. Select the Vector Tab then Analysis Tools, then Points in Polygon.

  • 24

    Analysis 1 : Calculate # of Syringes

    per Ward

    7

    2. Select Wards_2010 for the Polygon Layer

    3. Select SyringeLocations for the Point Layer.

    4. Browse to your saved data folder and save as SyringesPerWard.shp. Click OK

    5. Click Ok and when prompted to add layer to the TOC, Click Yes.

  • 25

    Analysis 1 : Calculate # of Syringes

    per Ward

    7

    6. Right Click on the SyringePerWard Layer and select Open Attribute Table to view results.

    Next Step 8 > Exporting your Analysis results into a .csv format .

  • 26

    7. Right Click on the SyringePerWard Layer and select Save As.

    Export results to .csv

    8

  • 27

    8. Select Comma Separated Values and save in a known file location that can be retrieved

    Export results to .csv

    8

    Next Step 9 > Further Analysis to Spatially Join the Syringe Data to the City

    Ward data .

  • 28

    Analysis 2 : Spatial Join of

    CityWards and Syringes

    9

    1. Select the Vector Tab then Data Management Tools, then Join Attributes by Location.

  • 29

    Analysis 2 : Spatial Join of

    CityWards and Syringes

    9

    2. Select SyringeLocations as your Target vector Layer.

    3. Select Wards_2010 as the Join Vector Layer.

    4. Click Browse and name the file > SyringesByWard.shp. Save to an appropriate location.

    5. Click Ok and when prompted to add layer to the TOC, Click Yes.

    At this point, Save your Project

  • 30

    Analysis 2 : Spatial Join of

    CityWards and Syringes

    9

    Open the Attribute table and view your results

  • 31

    Export results to .csv

    10

    31

    1. Select Comma Separated Values and save in a known file location that can be retrieved

  • 32

    Export results to .csv

    10

    Open the .csv file in Excel and view your results

  • 33

    At this point, the analysis is complete. You may do the following procedures to

    enhance your product for display purposes.

    Label Wards for Display

    11

    Display Analysis Results by Pie Chart

    12

    Display Analysis Results by Bar Graph

    13

    Export Map Display to Image

    (.jpg, .bmp, .tif )

    14

    This procedure will place labels on your map display for a selected layer based on which field you select.

    This procedure will display analysis results in the form of a Pie Chart for a selected layer based on which field you select.

    This procedure will display analysis results in the form of a Bar Graph for a selected layer based on which field you select.

    This procedure will export to a digital image (.jpg, .bmp, etc..) what is displayed in your map window.