Skip to content

Conversation

@adriangronau
Copy link
Collaborator

@adriangronau adriangronau commented Dec 1, 2021

Original: @KrokodileDandy #1

Implements an importer extension which compares trajectory paths with their respective shortest path to determine avoided and chosen street segments.

Eight new maps are implemented for visualization of the results:

  • Avoided score
  • Chosen score
  • Popularity score
  • Mixed popularity score

Each map has a replicated counterpart with an incident overlay.

sebastianfuehr and others added 30 commits May 17, 2021 11:33
sebastianfuehr and others added 28 commits June 14, 2021 22:55
Each map was added to the simra-ubuntu.conf file. For each map
<map-name>.conf and <map-name>.xml files where created. The map
popularity-score stays a non working prototype for now, the other
three are ready for production.
Adapted paths for the Django application, extended the setup
instructions for Django as well and adapted the tirex.sh script
to use absolute paths.
Merge "Add popularity maps with incident overlay"
All maps now use the same color scheme (avoided and chosen: blue,
p_score and p_mscore: color gradiant from red to green). Also, the
score calculations where adapted to match the scientific paper by
Karakaya et al. and to make s_score influences onto street segment
popularity more clearly visible.
Removes old bash files and includes the respective commands into
util/tirex.sh. README files now are found in the doc/ directory.
Implementation for the bachelor thesis: "Analyzing the Popularity of Street Segments for Cyclists in the SimRa Dataset"
@adriangronau adriangronau changed the title Feature/popularity street segments Implementation for the bachelor thesis: "Analyzing the Popularity of Street Segments for Cyclists in the SimRa Dataset" Dec 1, 2021
Copy link
Contributor

@RichardTUB RichardTUB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of absolute paths like /home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/simra-visualizations-server/tileserver/mapnik_maps/popularity-original_w-incidents_chosen.xml. This would lead to errors on any other system, but they should be easily fixable.

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api.settings')
sys.path.append('/var/simra/SimRa2/api')
sys.path.append('/var/simra/SimRa2/api/api')
sys.path.append('/home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/simra-visualizations-server/api')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sollten wir so nicht pushen. Entweder bei /var/simra/SimRa2 bleiben, oder das ganze in environment variables auslagern.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warum funktioniert hier ein relativer Pfad nicht? Oder kann man sich in Python nicht auch à la „realpath .“ oder pwd den Pfad holen?

)

# The directory to import the SimRa generated CSV files from.
IMPORT_DIRECTORY = "/home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/Monitored_CSV_Data"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

relativen pfad oder pfad aus ner config datei nehmen

@@ -0,0 +1,5468 @@
72#1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keine rides pushen

name=popularity-score
tiledir=/var/lib/tirex/tiles/popularity-score
maxz=18
mapfile=/home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/simra-visualizations-server/tileserver/mapnik_maps/popularity-score.xml No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keine absoluten pfade benutzen, relative pfade oder sinnvolle absolute pfade die auf jedem System funktionieren

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich hatte im docker Setup die Maps einfach in /etc/tirex/maps/mapnik gepackt. Denke das ist die schönste Lösung wenn man die configs eh in /etc/tirex/renderer/mapnik packt. Symlinken kann man sich das ja irgendwo anders hin…

name=popularity_w-incidents_score
tiledir=/var/lib/tirex/tiles/popularity_w-incidents_score
maxz=18
mapfile=/home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/simra-visualizations-server/tileserver/mapnik_maps/popularity_w-incidents_score.xml No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keine absoluten pfade benutzen, relative pfade oder sinnvolle absolute pfade die auf jedem System funktionieren

name=popularity-original_avoided
tiledir=/var/lib/tirex/tiles/popularity-original_avoided
maxz=18
mapfile=/home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/simra-visualizations-server/tileserver/mapnik_maps/popularity-original_avoided.xml No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keine absoluten pfade benutzen, relative pfade oder sinnvolle absolute pfade die auf jedem System funktionieren

name=popularity-original_chosen
tiledir=/var/lib/tirex/tiles/popularity-original_chosen
maxz=18
mapfile=/home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/simra-visualizations-server/tileserver/mapnik_maps/popularity-original_chosen.xml No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keine absoluten pfade benutzen, relative pfade oder sinnvolle absolute pfade die auf jedem System funktionieren

name=popularity-original_w-incidents_avoided
tiledir=/var/lib/tirex/tiles/popularity-original_w-incidents_avoided
maxz=18
mapfile=/home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/simra-visualizations-server/tileserver/mapnik_maps/popularity-original_w-incidents_avoided.xml No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keine absoluten pfade benutzen, relative pfade oder sinnvolle absolute pfade die auf jedem System funktionieren

name=popularity-original_w-incidents_chosen
tiledir=/var/lib/tirex/tiles/popularity-original_w-incidents_chosen
maxz=18
mapfile=/home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/simra-visualizations-server/tileserver/mapnik_maps/popularity-original_w-incidents_chosen.xml No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keine absoluten pfade benutzen, relative pfade oder sinnvolle absolute pfade die auf jedem System funktionieren

name=popularity_w-incidents_combined
tiledir=/var/lib/tirex/tiles/popularity_w-incidents_combined
maxz=18
mapfile=/home/sfuehr/Documents/TUB-WI/S7_BA_SimRa/simra-visualizations-server/tileserver/mapnik_maps/popularity_w-incidents_combined.xml No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keine absoluten pfade benutzen, relative pfade oder sinnvolle absolute pfade die auf jedem System funktionieren

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants