0% found this document useful (0 votes)
26 views5 pages

Gis - Lab 4

This document outlines a laboratory exercise for GEO 127, focusing on the use of Geographic Information Systems (GIS) to familiarize students with raster data. It includes objectives such as importing and editing raster files in QGIS, converting vector data to raster format, and creating a map layout. The exercise consists of detailed procedures, questions for analysis, and requirements for submission of completed work.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views5 pages

Gis - Lab 4

This document outlines a laboratory exercise for GEO 127, focusing on the use of Geographic Information Systems (GIS) to familiarize students with raster data. It includes objectives such as importing and editing raster files in QGIS, converting vector data to raster format, and creating a map layout. The exercise consists of detailed procedures, questions for analysis, and requirements for submission of completed work.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

GEO 127: Geographic Information Systems

Familiarization with Raster Data


Laboratory Exercise No.

Objectives:
1. import, view and/or edit properties of raster files in QGIS
2. convert data types from vector to raster file format

Materials:
• UP Campus Satellite Image (filename: PansharpUPsubset.tif)
• Land Use vector (filename: GeelongLandUse.shpand other file extensions)
• Laptop/computer, mouse, QGIS software, internet and etc.

Procedures:
A. Working with Raster Layers
1. Go to menu >Layer >>Add Layer >>>Add Raster Layer.
2. The Data Source Manager | Raster window will appear.
3. Under “Source” click the button and browse to your data folder.
4. Select the TIFF file QBPansharpUPsubset.tif.
5. Click Add then Close.
6. In the Layers Panel, double-click on the raster’s layer name and its Layer Properties will be
displayed.

Question 1: Based on the Layer properties of QBPansharpUPsubset, give the following details
about the raster:
a. CRS
b. Unit
c. Image Dimension (Width x Height)
d. Number of Bands
e. Origin Coordinates
f. Spatial resolution (Pixel Size)
g. Corner Coordinates (Extent)

7. In the Symbology Tab, there are five (5) render types available in displaying the raster:
(1) Multiband color, (2) Paletted, (3) Singleband gray, (4) Singleband pseudocolor and
(5) Hillshade
8. Check if the Style is set to Multiband color. If not, select the following from the drop-down
options:
Red band: Band 1 (Red)
Green band: Band 2 (Green)
Blue band: Band 3 (Blue)
Note: Leave other values to default.

9. Click Apply then OK. Inspect the result of the output image in the Map View.
10. Set Style to Singleband pseudocolor. Set the following:
Band: Band 1 (Red)
Color interpolation: Linear
Color: Spectral
Mode: Equal Interval
Classes: 5

11. Click Classify then Apply. Inspect the result of the output image in the Map View.
12. Repeat Step 11 but set Band to Band 2 (Green). Inspect the result of the output image in the
Map View.

Page 1 of 4
Department of Geodetic Engineering – Bulacan Agricultural State College
GEO 127: Geographic Information Systems
Familiarization with Raster Data
Laboratory Exercise No.

13. Repeat Step 11 but set Band to Band 3 (Blue). Inspect the result of the output image in the
Map View.

Question 2: What is/are the difference/s of the two styles Multiband color and Singleband
pseudocolor?
Question 3: Describe the images resulting from each symbology style based on the results of
steps 12, 13 & 14.

14. Save your QGIS project.

B. Conversion of Vector file to Raster


16. Open a New QGIS project
17. Go to menu Layer → Add Layer → Add Vector Layer.
18. In the Data Source Manager | Vector
window Under “Source” click the button
and browse to your datafolder.
19. Select the GeelongLandUse shapefile.
20. Click Add and Close
21. In the Layers Panel, open the Layer
Properties window of the LandUse layer to
edit the Symbology of your vector layer.
22. In the Symbology Tab, click the drop down
list and select Categorized.
23. Set Column to LandUse.
24. Set Color Ramp to Spectral.
Click the Classify button.

You will notice an extra classification at the


bottom of the list below Wetland (Shown in the
image on the right). This is the default of QGIS,
for NULL values. But we can remove this (since
there are no NULL values in our data).
25. Select the extra classification on the list
then click delete button
26. Re-set the Color Ramp to Spectral again from the drop down list.
27. Click Apply then OK
28. Inspect the result of the Categorized layer.

29. Check the attribute table of your layer. There should be 6 fields/columns contained in your
dataset.
Vector data can be converted to Raster data based on a numerical value. To convert the
land use information as raster grids, we need to use corresponding numerical code for each
land use type, in this case we can use the column GRIDCODE.

Question 4: List down the grid codes and their corresponding land use names.
Question 5: Based on visual inspection, which land use constitutes the largest area?

30. Go to menu Raster → Conversion → Rasterize (Vector to Raster) tool.


31. Set Input layer to GeelongLandUse.
Page 2 of 4
Department of Geodetic Engineering – Bulacan Agricultural State College
GEO 127: Geographic Information Systems
Familiarization with Raster Data
Laboratory Exercise No.
32. Set Field to use for burn-in value to GRIDCODE.
33. Set Output raster size units to Pixels
34. Set Width/Horizontal resolution to 100
35. Set Height/Vertical resolution to 100
36. For Output extent, click the button and choose Select Extent on Canvas
37. You will be prompt to create/drag a box to set the extent based on your input data

38. Expand the Advanced parameters option. Set Output data type to Int32.
39. Set Rasterized output file by clicking on the button choose Save to File…
40. Browse to your output folder. Set a file name e.g. Geelong_LUraster.
41. Accept all other parameters as the defaults.
42. Click Run to execute the Rasterize process
43. Click Close when process is complete.

Question 6: What is the range of values of this raster (minimum and maximum)? Explain what
is represented by your converted file.

44. Go to the Layer Properties > Symbology Tab of your Geeolong_LUraster layer.
45. Set Render type to Singleband Pseudocolor. Set the following:
Band: Band 1 (Gray)
Min: 1
Max: 7
Interpolation: Exact
Color: Spectral
Mode: Equal Interval
Classes: 7
46. Click Classify then Apply. Click OK
47. Look at the output of the categorized raster file of your land use and check closely the values
(comparing it to the vector file). Inspect the result of the output image in the Map View.

Page 3 of 4
Department of Geodetic Engineering – Bulacan Agricultural State College
GEO 127: Geographic Information Systems
Familiarization with Raster Data
Laboratory Exercise No.

Question 7: What is/are the similarities and/or differences in the raster and vector files of the
Land Use layer that you notice?

C. Making a Map Layout


48. Create a map of the categorized land
use raster from step 45, following similar
steps as in Lab Ex 2.
49. To change the paper layout, right-click on
the paper layout, select Page Properties
(as shown below)
50. The Item Properties will show the paper
properties. Under the Page Size options,
change the Orientation to Portrait.

SAMPLE MAP LAYOUT:

For submission:
Zip file (GEO 127_Lab4_Surname.zip) containing the following files:
1. Answers to questions (Saved as LabEx4_Answers_Surname.pdf)
2. Exported map layout output (Saved as LabEx4_Map_Surname.jpeg)

Upload your zip file to the designated submission folder for this lab exercise at the Google Class

Page 4 of 4
Department of Geodetic Engineering – Bulacan Agricultural State College
GEO 127: Geographic Information Systems
Familiarization with Raster Data
Laboratory Exercise No.

Page 5 of 4
Department of Geodetic Engineering – Bulacan Agricultural State College

You might also like