0% found this document useful (0 votes)
77 views4 pages

Quiz 1

The document discusses network analysis tools in QGIS. It begins with an overview of spatial analysis and network analysis. It then provides examples of using different network analysis tools to calculate the shortest and fastest paths between points on a road network layer, taking into account speed limits. It also demonstrates how to use the Service Area tool to identify the areas that are reachable within a given distance or time from points on the network.

Uploaded by

SHER ALI
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)
77 views4 pages

Quiz 1

The document discusses network analysis tools in QGIS. It begins with an overview of spatial analysis and network analysis. It then provides examples of using different network analysis tools to calculate the shortest and fastest paths between points on a road network layer, taking into account speed limits. It also demonstrates how to use the Service Area tool to identify the areas that are reachable within a given distance or time from points on the network.

Uploaded by

SHER ALI
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/ 4

1 SPATIAL ANALYSES

Spatial analyses is the process of examining the locations, attributes, and


relationships of features in spatial data through overlay and other analytical
techniques in order to address a question or gain useful knowledge. Spatial analysis
extracts or creates new information from spatial data.

Open the project exercise_data/network_analysis/network.qgz, it contains two


layers:

1. network_points
2. network_lines

As you can see the network_lines layer has already a style that helps to understand the
road network.

The shortest path tools provide ways to calculate either the shortest or the fastest path
between two points of a network, given:

 start point and end point selected on the map


 start point selected on the map and end points taken from a point layer
 start points taken from a point layer and end point selected on the map

Let’s start.

The Network analysis ‣ Shortest path (point to point) allows you to calculate the
shortest distance between two manually selected points on the map.

In this example we will calculate the shortest (not fastest) path between two points.

In the following image we choose these two points as starting and ending point for the
analysis:

1.
2. Open the Shortest path (point to point) algorithm
3. Select network_lines for Vector layer representing network
4. Let Shortest in the Path type to calculate parameter
5. Click on the … button next to the Start point (x, y) and choose the location
tagged with Starting Point in the picture. The menu is filled with the
coordinates of the clicked point.
6. Do the same thing but choosing the location tagged with Ending point for End
point (x, y)
7. Click on the Run button:
8. A new line layer is created representing the shortest path between the chosen
points. Uncheck the network_lines layer to see the result better:

Let’s open the attribute table of the output layer. It contains three fields, representing
the coordinates of the starting and ending points and the cost.

We chose Shortest as Path type to calculate, so the cost represent the distance, in
layer units, between the two locations.

In our case, the shortest distance between the chosen points is around 1000 meters:

9. Now that you know how to use the tool, feel free to change them and test other
locations.

1.1 FOLLOW ALONG: ADVANCED OPTIONS

Let’s explore some more options of the Network Analysis tools. In the previous
exercise we calculated the fastest route between two points. As you can imagine, the
time depends on the travel speed.

We will use the same layers and same starting and ending points of the previous
exercises.

1. Open the Shortest path (point to point) algorithm


2. Fill the Input layer, Start point (x, y) and End point (x, y) as we did before
3. Choose Fastest as the Path type to calculate
4. Open the Advanced parameter menu
5. Change the Default speed (km/h) from the default 50 value to 4
6.
7. Click on Run
8. Once the algorithm is finished, close the dialog and open the attribute table of
the output layer.

The cost field contains the value according to the speed parameter you have
chosen. We can convert the cost field from hours with fractions to the more
readable minutes values.
9. Open the field calculator by clicking on the icon and add the new
field minutes by multiplying the cost field by 60:

1.2 SHORTEST MAP WITH SPEED LIMIT

we would like to know the fastest route considering the speed limits of each road (the
labels represent the speed limits in km/h). The shortest path without considering speed
limits would of course be the purple path. But in that road the speed limit is 20 km/h,
while in the green road you can go at 100 km/h

As we did in the first exercise, we will use the Network analysis ‣ Shortest path (point
to point) and we will manually choose the start and end points.

1. Open the Network analysis ‣ Shortest path (point to point) algorithm


2. Select network lines for the Vector layer representing network parameter
3. Choose Fastest as the Path type to calculate
4. Click on the … button next to the Start point (x, y) and choose the location
tagged with Start Point in the picture. The menu is filled with the coordinates
of the clicked point.
5. Do the same thing but choosing the location tagged with End point for End
point (x, y)
6. Open the Advanced parameters menu
7. Choose the speed field as the Speed Field parameter. With this option the
algorithm will take into account the speed values for each road.
8.
9. Click on the Run button
10. Turn off the network lines layer to better see the result

1.3 SERVICE AREA (FROM LAYER)

The Network Analysis ‣ Service area (from layer) algorithm can answer the question: given a
point layer, what are all the reachable areas given a distance or a time value?

Note

The Network Analysis ‣ Service area (from point) is the same algorithm but, it allows you to
manually choose the point on the map.
Given a distance of 250 meters we want to know how far we can go on the network from each
point of the network_points layer.

1. Uncheck all the layers except network_points


2. Open the Network Analysis ‣ Service area (from layer) algorithm
3. Choose network_lines for Vector layer representing network
4. Choose network_points for Vector layer with start points
5. Choose Shortest in Path type to calculate
6. Enter 250 in the Travel cost parameter
7. Click on Run and then close the dialog

You might also like