0

Is there a way to divide an already- existing road network into a 2-D grid of equal sized cells? I need to extract some information such as vehicle density, average speed,...etc. from each cell.

are there any libraries, tools, APIs or tutorials? I am new to SUMO so any help would be appreciated.

Rehab11
  • 483
  • 2
  • 7
  • 16

1 Answers1

1

The easiest way is probably to generate an fcd output (sumo --fcd-output) which gives coordinates for every vehicle and then aggregate the values in a simple script. Depending on the precision needed and the data volume you expect, you can also aggregate the output to edges (and to time intervals) in SUMO using the mean data output but then you will need to handle the case of edges which are in multiple cells yourself. There is some help in parsing a sumo network and sumo outputs in sumolib.

Michael
  • 3,510
  • 1
  • 11
  • 23
  • Thanks for your help. Actually this is not only the reason why i need to divide the map into grid. I have to import it to another simulation tool and place some communication nodes in each cell based on this data. That why i have o divide it into cells or zones. Do you know how? – Rehab11 Feb 13 '18 at 11:44