1) If you have your weights in a suitable csv file, you can use sumo/tools/xml/csv2xml.py. Alternatively, write a small script that generates the weight file (-: 2) You need to set weights for all sumo edges. If you build your network with the option --output.original-names, then every edge will have a parameter that holds the original OSM id. This helps automation via the python library sumo/tools/sumolib. See https://sumo.dlr.de/docs/Tools/Sumolib.html
regards, Jakob Am Mi., 19. Feb. 2020 um 05:41 Uhr schrieb Marjerie Suresh < [email protected]>: > Thank you for responding. Based on your answer, I have a few follow up > questions regarding the weight file. > > 1) The network I use is very large and hence it is tedious to manually set > weights to every edge. Is there a way to automate this? > > 2) There are edges IDs which are divided based on the presence of > junctions etc. That is, as 213736#2, 213736#3, 213736#4 etc. Should the > weight be given to all of them or is it enough to give to ID 213736 alone? > > Thanking you > Marjerie Suresh > > > On Wed, 19 Feb, 2020, 00:57 Jakob Erdmann, <[email protected]> wrote: > >> 1) The format is that of >> https://sumo.dlr.de/docs/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures.html#edge-based_network_states >> However, you only need to set 'id' and 'traveltime'. If you want to route >> by effort (independent of traveltime) you currently have to write your >> values into one of the emission attributes. >> 2) Extension does not matter >> 3) The file must be loaded with option --weight-files and this can be >> used by duarouter as well as sumo (and sumo-gui) >> regards, >> Jakob >> >> Am Di., 18. Feb. 2020 um 17:31 Uhr schrieb Marjerie Suresh < >> [email protected]>: >> >>> Hello! >>> >>> I am new to the software. I want to specify weights to every edge of a >>> network formed from an osm file. After some reading, I understand that a >>> weight file can be used to do that. But, I have a few questions regarding >>> the weight file. >>> >>> 1) What is the syntax of the weight file? >>> 2) Should it be saved as <file_name>.add.xml or some other extension? >>> 3) How and when to add this file to the network? That is, during >>> netconvert or while calling the GUI for simulation? >>> >>> Thank you! >>> Marjerie Suresh >>> ᐧ >>> _______________________________________________ >>> sumo-user mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
