Hello team,
Thanks for all your previous suggestions. I am able to proceed ahead in my research. However, I am again stuck at one point.
I am trying to create route.xml file from pre-defined routes csv file using csv2xml.py tool. I am using below command and options for the same. This runs without any error but the output it produces is not as expected. It is putting all attributes values
at one place and MISSING_VALUE in edges.
Can you please suggest what should be the correct way of using csv2xml script.
Thanks in advance!
Command -
csv2xml.py "C:\Users\Bhushan\Sumo\rou.csv" -q "," -t "routes" -x "http://sumo.dlr.de/xsd/routes_file.xsd" -o "C:\Users\Bhushan\Sumo\rou.xml"
Input File - (rou.csv):
id,type,depart,departLane,departSpeed,edges
60,pas1,0.79,free,max,-230604780#2 230604780#2 230604780#3 230604780#4 230604780#5 130576322#0 130576322#1 130576322#2 130576322#3 130576322#4 130576322#5 130576322#6 130576322#7 130576322#8 130576322#9 130576322#10 130576322#11 6122889#0 6122889#1 6122889#2
6122889#3 6122889#
451,pas2,4.77,free,max,-6095593 6089496#2 6089496#3 6100188#1 6100188#2 -6097263#1 -6097263#0 6143547#7 6143547#8 6126772#10 6126772#11 6126772#12 6116950#0 6116950#1 6116950#2 6116950#3 6126074#0 6109854#0 6109854#1 6128264#5
Output File - (rou.xml):
<routes>
<vehicle depart,departLane,departSpeed,edges="60,pas1,0.79,free,max,-230604780#2 230604780#2 230604780#3 230604780#4 230604780#5 130576322#0 130576322#1 130576322#2 130576322#3 130576322#4 130576322#5 130576322#6 130576322#7 130576322#8 130576322#9
130576322#10 130576322#11 6122889#0 6122889#1 6122889#2 6122889#3 6122889#">
<route edges="MISSING_VALUE"/>
</vehicle>
<vehicle depart,departLane,departSpeed,edges="451,pas2,4.77,free,max,-6095593 6089496#2 6089496#3 6100188#1 6100188#2 -6097263#1 -6097263#0 6143547#7 6143547#8 6126772#10 6126772#11 6126772#12 6116950#0 6116950#1 6116950#2 6116950#3 6126074#0 6109854#0
6109854#1 6128264#5">
<route edges="MISSING_VALUE"/>
</vehicle>
</routes>
Thanks and regards,
Vrinda Khirwadkar
University of Memphis
From: Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>
Sent: Monday, February 12, 2018 6:33 AM
To: Sumo project User discussions
Cc: Vrinda Khirwadkar (vkhrwdkr)
Subject: Re: [sumo-user] Reading large SUMO output files
Unfortunately, there is currently no tool to perform the same type of processing for the netstate-dump.
regards,
Jakob