-
Notifications
You must be signed in to change notification settings - Fork 5
Implementation for the bachelor thesis: "Analyzing the Popularity of Street Segments for Cyclists in the SimRa Dataset" #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Route comparison
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.
Dev popularity tiles
Dev detour threshold
Implementation for the bachelor thesis: "Analyzing the Popularity of Street Segments for Cyclists in the SimRa Dataset"
RichardTUB
left a comment
There was a problem hiding this 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') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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:
Each map has a replicated counterpart with an incident overlay.