Skip to content

Storing the road network in the database

Torgeir Slette edited this page May 11, 2018 · 2 revisions

To store the segmented road network in the database, take a look at the file "example_roadnet_to_db.py". Municipality, type_of_road, max_distance and segments are set to default values. Change them if needed.

Add your Django username and password in the correct fields. This will likely be changed in the future.

Run the file and after 2-3 min you should be good to go. Check status code for error messages if its not working.

This file is an example and the whole process should be done in the setup phase. Changes can occur.

NOTE: If you get a Broken Pipe Error, double check your credentials in local.py and in example_roadnet_to_db.py

Clone this wiki locally