Professional Documents
Culture Documents
Introduction To QGIS-1
Introduction To QGIS-1
CJWK
What is QGIS?
• Quantum GIS or QGIS is an open source (Free) GIS processing
software
• It offers various functions such as different vector and raster analysis,
including the production of maps.
• This tutorial will;
❑ Show how to install current version of QGIS software
❑ Show some examples of GIS processing;
1. Georeferencing and Digitizing
2. Vector Analysis (Reproject, Importing and Exporting Coordinates)
❑Producing Simple Map
CJWK
How To Install QGIS
• Browse to QGIS website (https://www.qgis.org/en/site/)
• Click the “Download Now” Button
CJWK
How To Install QGIS
• Two version of the Standalone installer from OSGeo4W packages
available : Latest release and Long term release
• Latest release includes more features while Long term release is
more stable (Choose stable version to reduce software crash)
• Select QGIS standalone Installer Version 3.16 (64 bit if your laptop/pc
has 64 bit operating system)
• Wait for installer to finish download
CJWK
How To Install QGIS
• In “Downloads” folder, double click on the QGIS installer
• The Setup window will appear. Click Next → I Agree
CJWK
How To Install QGIS
• Set destination folder →C:\Program Files\QGIS 3.16
• Click Next
CJWK
How To Install QGIS
• In Choose Components Window, do not select the other Data Sets
(to save space)
• Click Install
CJWK
How To Install QGIS
• Click Finish once the installation is completed
CJWK
How To Install QGIS
• QGIS software should appear in your “Recently added” tab in start
menu
• Click on QGIS Desktop 3.16.7
CJWK
QGIS Interface
CJWK
Setting up Project in QGIS
CJWK
Changing CRS of Project
CJWK
Changing Coordinate Display
CJWK
Examples of GIS Process
(Georeferencing)
• Georeference is the process in which we set the coordinates of an
image / scanned map that has no coordinate system
• Images or maps in JPEG format are examples of data that has no
coordinate systems
• Two Methods in Georeferencing
1. Inputting known coordinates into points
2. Using reference image
CJWK
Georeferencing
CJWK
Georeferencing
CJWK
Georeferencing (Method #1)
CJWK
Georeferencing (Method #2)
CJWK
Digitizing
CJWK
Digitizing
CJWK
Digitizing
CJWK
Digitizing
CJWK
Digitizing
CJWK
Digitizing
• Add another field called “Area (ha)” to represent area of the polygons
that will be digitized
• Set “Type” to the desired type of field
• For area , select “Decimal Number”
• Set the length (number of digits that can be written inside the field)
• Set Precision to 6 (number of decimal places)
• Click “Add to Field List”
• Area (ha) field will appear in “Field List” Section
• Click OK
CJWK
Digitizing
CJWK
Digitizing
CJWK
Digitizing
• Left click to digitize the area desired (trace the borders of the area)
• Right click to finish the polygon
• “Feature Attributes” window will appear
• Type in the information in each field section if known or leave NULL
if unknown
• Type in the polygon number in “id” field
• Type in the forest class number in “For_Class” field
• Click OK
• Polygon digitized will appear
CJWK
Digitizing
• Start digitizing the next polygon from the vertices of the previous
polygons
• Enabling “Snap” function prior to digitizing will ensure no gaps
between neighbouring polygons (ensure all the areas are digitized)
• Enabling “Avoid Overlap on Active Layer” function prior to digitizing
will ensure the neighbouring polygons do not overlap with each
other
• Delete/Edit a polygon by browsing through “Advanced Digitizing
Toolbar”
• When all areas have been digitized, right click on the shapefile in the
“Layers” tab and click “Toggle Editing” to stop editing process. Click
Save in the “Stop Editing” window
CJWK
Digitizing
CJWK
Digitizing
• Other base map can also be inserted inside the “XYZ Tiles”
CJWK
Digitizing
CJWK
Vector Analysis
CJWK
Vector Analysis (Reproject)
CJWK
Vector Analysis (Reproject)
CJWK
Vector Analysis (Reproject)
CJWK
Vector Analysis (Importing Coordinates)
CJWK
Vector Analysis (Importing Coordinates
from CSV files)
• Select “Layer”→ “Add Layer” → “Add Delimited Text Layer”
CJWK
Vector Analysis (Importing Coordinates
from CSV files)
• “Data Source Manager Delimited Text” window will appear
• Browse CSV file from “File name”
• In “File Format” section, select CSV
• In “Geometry Definition” section, select “Point Coordinates”
• In “X field” select the x/Longitude coordinates
• In “Y field” select the y/Latitude coordinates
• Tick ( ) DMS coordinates if the coordinates are in Degree Minutes Second
format. Keep untick if coordinates are in Decimal Degree format
• Set “Geometry CRS” to the desired CRS
• Click “Add”
CJWK
Vector Analysis (Importing Coordinates
from GPX and KML files)
• QGIS will automatically open files from GPS and KML files
• Browse the GPX and KML file from the “Browser” panel, click and
drag to the “Layers” panel
• When opening GPX file, “Select Vector Layers to Add” window will
appear. Select the desired layers
CJWK
Vector Analysis (Importing Coordinates)
CJWK
Vector Analysis (Importing Coordinates)
CJWK
Vector Analysis (Extracting Coordinates
from Shapefile)
• Digitize points into the layer (Create a new Shapefile layer, set
geometry as point)
• Select “Vector” → “Geometry tools” → “Add Geometry Attributes”
CJWK
Vector Analysis (Extracting Coordinates
from Shapefile)
• “Add Geometry Attributes” window will appear
• Select the layer desired in “Input Layer”
• In “Calculate using” section, select “Layer CRS” or “Project CRS”
• In “Added geom info” section, select “Save to File” to save the new
layer. Otherwise, select “Create temporary layer”
• Click Run
• Right click on the new layer and select “Open Attribute Table”
• The coordinates are displayed in decimal degrees as “xcoord” and
“ycoord”
CJWK
Vector Analysis (Extracting Coordinates
from Shapefile)
• To change the coordinates extracted from Decimal Degrees to
Degree Minute Second (DMS) format, open attribute table of the
layer
• Select “Toggle editing mode” from the attribute table window
• Select “Open Field Calculator”
CJWK
Vector Analysis (Extracting Coordinates
from Shapefile)
• In “Expression” under “row_number” section, expand “Field and
Values”
• Double click “xcoord”
CJWK
Vector Analysis (Extracting Coordinates
from Shapefile)
• In “Expression” section, add in ,’x’,5)
• Click OK
CJWK
Vector Analysis (Extracting Coordinates
from Shapefile)
• New field “xcoord_dms” will be added to the attribute table with
coordinates values in DMS format
• Repeat steps for y coordinates. Name field as “ycoord_dms”
• Click “Save edits” and “Toggle Editing” to finish
CJWK
Vector Analysis (Exporting attribute table
to CSV file)
• Right click on the layer to export
• Select “Export” → “Save Feature as”
• “Save Vector Layer as” window will appear
• In “Format”, select “comma separated value [CSV]”
• Browse the desired directory and name the shapefile in “File name”
• Set “CRS” to desired CRS
• Tick ( ) “Add saved file to map” if you want to display the shapefile
in the project windows. Untick if otherwise
• Click OK
CJWK
Producing Maps
CJWK
Producing Maps
• Ensure all the layers area displayed inside the “Layers” panel
• Select “Project” → “New Print Layout”
• “Create Print Layout” window will appear
• Name the print layout and click OK
• A new map window will appear
CJWK
Producing Maps
• Right click on the empty canvas and click “Page properties” to change
the properties of the map (Details will appear in the “Items” panel)
• In the “Toolbox” panel click “Add map”
• Click and drag inside the canvas to desired size of the map
• The layers that are displayed in the “Layers” panel will appear
• Click “Move item content” to edit the position and size of the layers
• Left click and drag to reposition the layers
• Hold ‘CTRL’ key and scroll button of the mouse to adjust the size
• In the “Items” panel, under “Item Properties” section, expand “Main
Properties” and tick ( ) “Lock layers” to prevent the layers from
moving during map editing
CJWK
Producing Maps
CJWK
Producing Maps
CJWK
-END-
CJWK