0% found this document useful (0 votes)
308 views18 pages

Principles of Geographic Information Systems Tybsc (It), Sem - Vi

This document provides instructions for creating and managing vector data in QGIS. It describes how to add vector layers for polygons, lines, and points. It explains how to set layer properties, format labels, calculate line lengths, and generate statistics. Key steps include adding shapefiles, editing attributes, using the field calculator, and analyzing numeric fields to determine total length and other metrics. The goal is to demonstrate fundamental GIS functions like creating and styling different vector feature types and extracting information from the attribute table.

Uploaded by

Akshata Pardule
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)
308 views18 pages

Principles of Geographic Information Systems Tybsc (It), Sem - Vi

This document provides instructions for creating and managing vector data in QGIS. It describes how to add vector layers for polygons, lines, and points. It explains how to set layer properties, format labels, calculate line lengths, and generate statistics. Key steps include adding shapefiles, editing attributes, using the field calculator, and analyzing numeric fields to determine total length and other metrics. The goal is to demonstrate fundamental GIS functions like creating and styling different vector feature types and extracting information from the attribute table.

Uploaded by

Akshata Pardule
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/ 18

Principles of Geographic Information Systems TYBSc (IT), Sem - VI

Practical No. 1:

Aim: Creating and managing vector data: Adding vector layer, setting properties, formatting, calculating
line length and statistics.

A) Adding Vecor layer.


1. Create new project. Click on Layer Create Layer New Shapefile Layer…

2. Set the name and location of file. Select geometry type as polygon. Add new field as Name and
click on Add to field list button.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

3. Click Toggle Editing Button → then Click on Add Polygon; Now place the cursor at the location
where you want to place the polygon. For polygon layer minimum 3 points should be selected.
Give id and Name to the polygon.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

4. To change the property of layer right click on layer matunga from Layers pane and select
Properties...

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

5. Similarly add one more layer garden and add polygons to represent garden, also provide id and
Name of each polygon being created.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

6. Creating Line vector layer:

Repeat the same steps as we have done for polygon layer. ➢ Select geometry type Line.

7. To plot road click on Add Line Feature.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

8. Click on the map where you want to draw line. Once you are done then right click on map
(Dotted line turn into solid line).

9. Save your data. And also change properties of road layer.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

10. To label your roads Right click on Road layer .Go to properties window then select label and set
single label property.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

11. To merge roads go to properties of road then select symbology. Click on Advanced button select
Symbol levels.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

12. Check Enable symbol levels option and click on OK.

13. Similarly add two more layers as small_road and flyover.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

14. Create Point vector layer ➢ Repeat same steps to add point layers as we have done in previous
layers. (For ATM, Restaurants, Banks, Bus Stops etc).

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

Calculating line lengths and statistics

15. Go to Layer → Add Layer → Add Vector Layer ➢ Add the following file to project.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

16. Add the file and then click on close button.

17. Right click on the current layer from layer window and select Open Attribute Table

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

18. Press Toggle Editing button, on Attribute table window toolbar then we have to add length
attribute. Click on “Open field calculator” or press “Ctrl+i”

19. In field calculator enter following values.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

20. Now we have to generate Statistics. Go to Vector > Analysis Tools > Basic statics for numeric
fields.

21. Select the railroads layer in “Input vector layer”. Select “length” attribute in “Field to calculate
statistics on”.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

22. We have to save the result. Click on button and select “Save to file...”

23. Select the path and enter the file name “total-length” extension will be “.html” and click on
“Save”.

Chetna S. Suthar
Principles of Geographic Information Systems TYBSc (IT), Sem - VI

24. Now click on Run button. It will generate statistics.

Chetna S. Suthar

You might also like