Skip to content

Commit d040f62

Browse files
committed
algragide case study
1 parent 8d6fa92 commit d040f62

33 files changed

+907618
-28
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UTF-8
23.5 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PROJCS["ETRS_1989_Portugal_TM06",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS_1989",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-8.13310833333333],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",39.6682583333333],UNIT["Meter",1.0]]
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2+
<qgis version="3.34.10-Prizren">
3+
<identifier></identifier>
4+
<parentidentifier></parentidentifier>
5+
<language></language>
6+
<type></type>
7+
<title></title>
8+
<abstract></abstract>
9+
<links/>
10+
<dates/>
11+
<fees></fees>
12+
<encoding></encoding>
13+
<crs>
14+
<spatialrefsys nativeFormat="Wkt">
15+
<wkt></wkt>
16+
<proj4></proj4>
17+
<srsid>0</srsid>
18+
<srid>0</srid>
19+
<authid></authid>
20+
<description></description>
21+
<projectionacronym></projectionacronym>
22+
<ellipsoidacronym></ellipsoidacronym>
23+
<geographicflag>false</geographicflag>
24+
</spatialrefsys>
25+
</crs>
26+
<extent/>
27+
</qgis>
127 KB
Binary file not shown.
452 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UTF-8
23.5 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2+
<qgis version="3.34.10-Prizren">
3+
<identifier></identifier>
4+
<parentidentifier></parentidentifier>
5+
<language></language>
6+
<type></type>
7+
<title></title>
8+
<abstract></abstract>
9+
<links/>
10+
<dates/>
11+
<fees></fees>
12+
<encoding></encoding>
13+
<crs>
14+
<spatialrefsys nativeFormat="Wkt">
15+
<wkt></wkt>
16+
<proj4></proj4>
17+
<srsid>0</srsid>
18+
<srid>0</srid>
19+
<authid></authid>
20+
<description></description>
21+
<projectionacronym></projectionacronym>
22+
<ellipsoidacronym></ellipsoidacronym>
23+
<geographicflag>false</geographicflag>
24+
</spatialrefsys>
25+
</crs>
26+
<extent/>
27+
</qgis>
127 KB
Binary file not shown.
452 Bytes
Binary file not shown.

Oeiras2024/Alfragide_census.qgz

57.5 KB
Binary file not shown.

Oeiras2024/Alfragide_correct.cpg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UTF-8

Oeiras2024/Alfragide_correct.dbf

5.82 KB
Binary file not shown.

Oeiras2024/Alfragide_correct.prj

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]

Oeiras2024/Alfragide_correct.qix

80 Bytes
Binary file not shown.

Oeiras2024/Alfragide_correct.qmd

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2+
<qgis version="3.34.10-Prizren">
3+
<identifier></identifier>
4+
<parentidentifier></parentidentifier>
5+
<language></language>
6+
<type></type>
7+
<title></title>
8+
<abstract></abstract>
9+
<links/>
10+
<dates/>
11+
<fees></fees>
12+
<encoding></encoding>
13+
<crs>
14+
<spatialrefsys nativeFormat="Wkt">
15+
<wkt></wkt>
16+
<proj4></proj4>
17+
<srsid>0</srsid>
18+
<srid>0</srid>
19+
<authid></authid>
20+
<description></description>
21+
<projectionacronym></projectionacronym>
22+
<ellipsoidacronym></ellipsoidacronym>
23+
<geographicflag>false</geographicflag>
24+
</spatialrefsys>
25+
</crs>
26+
<extent/>
27+
</qgis>

Oeiras2024/Alfragide_correct.shp

35.8 KB
Binary file not shown.

Oeiras2024/Alfragide_correct.shx

140 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UTF-8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Name;Alias
2+
NO;NO
3+
CODE;CODE
4+
NAME;NAME
5+
TYPENO;TYPENO
386 Bytes
Binary file not shown.
88 Bytes
Binary file not shown.
28.9 KB
Binary file not shown.
156 Bytes
Binary file not shown.

Oeiras2024/Census21_Oeiras.gpkg

928 KB
Binary file not shown.

Oeiras2024/Oeiras2024.osm

+907,446
Large diffs are not rendered by default.

code/osmextract.R

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
library(tidyverse)
2+
# library(osmextract)
3+
library(osmdata)
4+
library(sf)
5+
6+
bbox = c(-9.285164,38.706142,-9.199076,38.752611)
7+
8+
Oeiras = opq(bbox) |>
9+
add_osm_feature(key = 'highway') |>
10+
osmdata_xml()
11+
class(Oeiras$node)
12+
13+
q1 <- opq('Sevilla') %>%
14+
add_osm_feature(key = 'highway', value = 'cycleway')
15+
cway_sev <- osmdata_sp(q1)
16+
sp::plot(cway_sev$osm_lines)
17+
18+
q <- opq(bbox = c(51.1, 0.1, 51.2, 0.2))

index.qmd

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ This website makes avaliable materials, data and tutorials to use at the [Modell
88

99
See the [Macro](macro.qmd) and [Micro](micro.qmd) modelling home assignments.
1010

11-
> Note: This website is under construction. If you have any suggestions, please contact the course teacher.
11+
> Note: This website is under construction.
12+
> If you have any suggestions, please contact the course teacher.

software.qmd

+13-6
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ author: "R Félix"
55

66
There are several software options for modeling transportation systems.
77

8-
To choose a traffic simulation software to work with can depend on different things to consider. You may use more than one software, depending on the scale you are working with, and on other characteristics.
8+
To choose a traffic simulation software to work with can depend on different things to consider.
9+
You may use more than one software, depending on the scale you are working with, and on other characteristics.
910

1011
## Macro vs. Micro
1112

1213
### Macro simulators
1314

14-
Some softwares can be more appropriated if using a large scale, such as regional or city-wide area. For instance, the traffic impacts on the development of a new centrality (hospital, airport), or in the introduction of a new bridge or freeway can be simulated with macro simulator software.
15+
Some softwares can be more appropriated if using a large scale, such as regional or city-wide area.
16+
For instance, the traffic impacts on the development of a new centrality (hospital, airport), or in the introduction of a new bridge or freeway can be simulated with macro simulator software.
1517

1618
[PTV Visum](visum.qmd), Aimsun, and [MatSim](matsim.qmq) are examples of software to deal with a large scale simulation.
1719

@@ -21,15 +23,18 @@ Usually this type of simulators can smoothly integrate Public Transport informat
2123

2224
### Micro simulators
2325

24-
Want to simulate changes at a street or neighbourhood level? Then micro simulator software should be used.
26+
Want to simulate changes at a street or neighbourhood level?
27+
Then micro simulator software should be used.
2528

2629
[PTV Visim](vissim.qmd), [SUMO](sumo.qmd), and [A/B Street](https://a-b-street.github.io/docs/software/abstreet.html) are examples of software to deal with a micro scale simulation.
2730

2831
## Paid (Licence) vs. Free
2932

3033
### Paid
3134

32-
Available commercial software is largely used at many companies and consultants. Universities also usually offer licence access to students and researchers. **At IST we provide access to PTV Visum licence** for registered students[^1].
35+
Available commercial software is largely used at many companies and consultants.
36+
Universities also usually offer licence access to students and researchers.
37+
**At IST we provide access to PTV Visum licence** for registered students[^1].
3338

3439
[^1]: Contact Filipe Moura or Rosa Félix to access Visum.
3540

@@ -49,7 +54,8 @@ To choose a software to work with, you should also consider the operation system
4954

5055
You may always use virtual machines to have another OS in your PC, but that comes with memory and performance cost.
5156

52-
- For **MacOS** users, [UTM](https://getutm.app/) is a good free option. Keep in mind that the University of Lisbon provides Windows stutent's licences.
57+
- For **MacOS** users, [UTM](https://getutm.app/) is a good free option.
58+
Keep in mind that the University of Lisbon provides Windows stutent's licences.
5359

5460
- For **Linux** (Ubuntu or Debian) users, [Gnome Boxes](https://apps.gnome.org/Boxes/) are an interesting option to run Windows.
5561

@@ -61,6 +67,7 @@ PTV Visum and Visim are only available for Windows.
6167

6268
We only offer guidance to setup some of the available software[^2].
6369

64-
[^2]: If you use other traffic simulation software, you may contribute to this website and create another tutorial 🙂. Fork and Pull Request in this [Github](https://github.com/U-Shift/Traffic-Simulation-Models) repo.
70+
[^2]: If you use other traffic simulation software, you may contribute to this website and create another tutorial 🙂.
71+
Fork and Pull Request in this [Github](https://github.com/U-Shift/Traffic-Simulation-Models) repo.
6572

6673
Please see each software page for more details.

sumo.qmd

+30-14
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ bibliography: references.bib
66

77
In this tutorial we will guide you to install and start using SUMO.
88

9-
[SUMO](https://eclipse.dev/sumo/about/) is a free and open source traffic simulation suite. It is available since 2001 and allows modelling of intermodal traffic systems - including road vehicles, public transport and pedestrians. Included with SUMO is a wealth of supporting tools which automate core tasks for the creation, the execution and evaluation of traffic simulations, such as network import, route calculations, visualization and emission calculation [@SUMO2018].
9+
[SUMO](https://eclipse.dev/sumo/about/) is a free and open source traffic simulation suite.
10+
It is available since 2001 and allows modelling of intermodal traffic systems - including road vehicles, public transport and pedestrians.
11+
Included with SUMO is a wealth of supporting tools which automate core tasks for the creation, the execution and evaluation of traffic simulations, such as network import, route calculations, visualization and emission calculation [@SUMO2018].
1012

1113
SUMO is available for any operating system.
1214

@@ -20,25 +22,30 @@ Visit <https://eclipse.dev/sumo/> and download the installation file (137 MB).
2022

2123
![](images/clipboard-3306613480.png)
2224

23-
Open the downloaded file and execute in your computer. Accept the defaults and install.
25+
Open the downloaded file and execute in your computer.
26+
Accept the defaults and install.
2427

2528
### Mac OS
2629

27-
> soon. 🐼
30+
> soon.
31+
> 🐼
2832
2933
### Linux
3034

3135
In debian based (ubuntu, kubuntu, popOS, debian) follow this instructions.
3236

33-
> soon. 🐧
37+
> soon.
38+
> 🐧
3439
3540
## Getting started
3641

37-
Open SUMO-gui (Graphic User Interface). You should have a window like this:
42+
Open SUMO-gui (Graphic User Interface).
43+
You should have a window like this:
3844

3945
![](images/clipboard-3165483734.png){width="615"}
4046

41-
Several tutorials are available. Try these ones:
47+
Several tutorials are available.
48+
Try these ones:
4249

4350
- [Hello World](https://sumo.dlr.de/docs/Tutorials/Hello_World.html) - Creating a simple network and demand scenario with [netedit](https://sumo.dlr.de/docs/Netedit/index.html) and visualizing it using [sumo-gui](https://sumo.dlr.de/docs/sumo-gui.html)
4451

@@ -75,9 +82,11 @@ And a window will open in your browser.
7582

7683
![](images/clipboard-2247596800.png)
7784

78-
You may zoom and pan to the area of your interest[^1]. Click on "Select Area" and draw a rectangle with your mouse for which you wish to generate the simulation scenario.
85+
You may zoom and pan to the area of your interest[^1].
86+
Click on "Select Area" and draw a rectangle with your mouse for which you wish to generate the simulation scenario.
7987

80-
[^1]: Caution: if the map excerpt covers a very large area, the simulation might become slow or even unresponsive. We suggest choosing a similar zoom level as in the initial view.
88+
[^1]: Caution: if the map excerpt covers a very large area, the simulation might become slow or even unresponsive.
89+
We suggest choosing a similar zoom level as in the initial view.
8190

8291
#### Network Generation
8392

@@ -92,11 +101,14 @@ The infrastructure import from OSM into the SUMO simulation are affected by diff
92101

93102
#### Demand Generation
94103

95-
The demand is defined by the demand generation panel. You activate this panel by clicking on the car pictogram.
104+
The demand is defined by the demand generation panel.
105+
You activate this panel by clicking on the car pictogram.
96106

97107
![](images/clipboard-1645183866.png){width="284"}
98108

99-
SUMO supports various modes of transport. At the demand generation panel, you can activate/deactivate the individual modes of transport by clicking the corresponding checkboxes. For each mode of transport, the OSM Web Wizard generates random demand based on a certain probability distribution, which is influenced by two parameters:
109+
SUMO supports various modes of transport.
110+
At the demand generation panel, you can activate/deactivate the individual modes of transport by clicking the corresponding checkboxes.
111+
For each mode of transport, the OSM Web Wizard generates random demand based on a certain probability distribution, which is influenced by two parameters:
100112

101113
- Every time a new vehicle is generated, the OSM Web Wizard randomly chooses a departure and arrival edge for the vehicle. The *Through Traffic Factor* defines how many times it is more likely for an edge at the boundary of the simulation area being chosen, compared to an edge entirely located inside the simulation area. A big value for the *Through Traffic Factor* implies that many vehicles depart and arrive at the boundary of the simulation area, which corresponds to a scenario with a lot of through traffic.
102114
- The *Count* parameter defines how many vehicles are generated per hour and lane-kilometer. Assuming
@@ -118,23 +130,27 @@ In the Road-Type tab of the OSM Web Wizard one can define which road types to be
118130

119131
![](images/clipboard-1076186910.png){width="225"}
120132

121-
For example, one can only choose motorways, primary, secondary and tertiary to simulate major traffic. This impacts the file size of the OSM map data.
133+
For example, one can only choose motorways, primary, secondary and tertiary to simulate major traffic.
134+
This impacts the file size of the OSM map data.
122135

123136
By default, all road types are checked which implies downloading and rendering all roads.
124137

125138
Unchecking the "Add Polygon" checkbox in the Demand Generation section disables downloading and rendering non-road objects like buildings, waterways, etc. resulting in a smaller file size.
126139

127140
#### Generating and Running the scenario
128141

129-
The complete scenario will be generated automatically once *Generate Scenario* in the control panel has been clicked. The scenario generation takes a couple of seconds or minutes (depending, among other factors, on the size of the scenario).
142+
The complete scenario will be generated automatically once *Generate Scenario* in the control panel has been clicked.
143+
The scenario generation takes a couple of seconds or minutes (depending, among other factors, on the size of the scenario).
130144

131145
Once the scenario generation process has finished, the sumo-gui starts and the simulation can be started by pressing the *Play* button.
132146

133-
![](images/clipboard-725212682.png) You will see agents making their trips. Adjust the *Delay* to make it faster or slower.
147+
![](images/clipboard-725212682.png) You will see agents making their trips.
148+
Adjust the *Delay* to make it faster or slower.
134149

135150
![](images/clipboard-2442094165.png){width="603"}
136151

137-
A new directory under your user folder *`~/SUMO/yyyy-mm-dd-hh-mm-ss`* will be created to host the data and results. You may now edit those files and re-run the simulation (open `run` file).
152+
A new directory under your user folder *`~/SUMO/yyyy-mm-dd-hh-mm-ss`* will be created to host the data and results.
153+
You may now edit those files and re-run the simulation (open `run` file).
138154

139155
### Use the case study data
140156

visum.qmd

+16-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ title: "Visum"
33
author: "R Felix"
44
---
55

6-
> ❗ This tutorial is only for Windows. If you do not use Windows, you need to have a [Virtual Machine](software.qmd#operating-system). If you have an Arm processor this [won't work](https://us-resources.ptvgroup.com/en-us/ptv-support/system-requirements), even with a VM.
6+
> ❗ This tutorial is only for Windows.
7+
> If you do not use Windows, you need to have a [Virtual Machine](software.qmd#operating-system).
8+
> If you have an Arm processor this [won't work](https://us-resources.ptvgroup.com/en-us/ptv-support/system-requirements), even with a VM.
79
810
In this tutorial we will guide you to install and start using Visum.
911

@@ -13,21 +15,24 @@ In this tutorial we will guide you to install and start using Visum.
1315

1416
PTV Visum is available to download at: <https://cgi.ptvgroup.com/visionSetups/en/filter;product=PTV%20Visum>
1517

16-
Choose the most recent version (recommended). The file may be more than 1.3 GB.
18+
Choose the most recent version (recommended).
19+
The file may be more than 1.3 GB.
1720

1821
If you don't have Python installed already in your PC, don't worry, you can opt to install it along the Visum setup.
1922

2023
The [available instructions](https://us-resources.ptvgroup.com/en-us/ptv-support/ptv-visum-installation) are very straight forward.
2124

2225
### Licence activation
2326

24-
> You should have received a server address of where the CERIS licence lives. If not, contact the course teacher.
27+
> You should have received a server address of where the CERIS licence lives.
28+
> If not, contact the course teacher.
2529
2630
To use Visum with the CERIS licence, you need to download [PTV Licence Manager (Standard)](https://cgi.ptvgroup.com/visionSetups/Setups/LICENSEMANAGER/LicenseManager.exe).
2731

2832
![](images/clipboard-2536119485.png){width="610"}
2933

30-
It will ask you to download also another tiny software [CodeMeter Runtime](https://us-resources.ptvgroup.com/en-us/ptv-support/ptv-visum-installation). Say yes!
34+
It will ask you to download also another tiny software [CodeMeter Runtime](https://us-resources.ptvgroup.com/en-us/ptv-support/ptv-visum-installation).
35+
Say yes!
3136

3237
After install it, open PTV Licence Manager, and click on ⚙️ Edit CodeMeter settings:
3338

@@ -41,15 +46,19 @@ Press close (go back) and now 🔍 **Find Licences**.
4146

4247
![](images/clipboard-1159052615.png){width="376"}
4348

44-
An available licence row should now appear on the list 🎉. Close it.
49+
An available licence row should now appear on the list 🎉.
50+
Close it.
4551

4652
## Getting started
4753

48-
When launching Visum for the first time, you should have something like this. This is a good signal, it means that the connection to the licence server is running smoothly and that you are ready to start working on your projects! 🚀
54+
When launching Visum for the first time, you should have something like this.
55+
This is a good signal, it means that the connection to the licence server is running smoothly and that you are ready to start working on your projects!
56+
🚀
4957

5058
![](images/clipboard-89661704.png)
5159

52-
The "Tutorial First Steps" may be wise to follow if you are not familiar with the software. It covers the following topics:
60+
The "Tutorial First Steps" may be wise to follow if you are not familiar with the software.
61+
It covers the following topics:
5362

5463
- Network editing (private and public transport)
5564
- Procedure sequence

0 commit comments

Comments
 (0)