Gis - Lab 4
Gis - Lab 4
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.
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?
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?
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